Android Management API: List of Enterprises/Policies?

≡放荡痞女 提交于 2020-03-25 14:29:41

问题


This is driving me nuts. I've successfully followed the Android Management API Quickstart to create a project/enterprise/policy and install it on a device.

I stupidly didn't write down the enterprise or policy IDs. I tried to create a new set, but the non-enterprise email now gives an error that it's already part of another EMM.

Is there a place in the console where I can see a list of the enterprises and/or policies that I've created? Where are these stored?

Edit: I found the enterprises.get method in the API but if I put enterprises/* in the name field (per the validation) I get a 400 error indicating Invalid enterprise id. Provide a valid id. so I'm unsure how to move forward.


回答1:


You can find the enterprise you created by logging into play.google.com/work with the account that was used to create it.

Click on Admin Settings to see the Organization name and Organization ID

And to find the policies of all the devices you have enrolled to this enterprise, you can simply call the API - enterprises.devices.list entering the parent in the form enterprises/{enterpriseId} [ enterpriseId here is the OrganizationID that you get from the above steps ]

This would list all the devices attached to the enterprise and in the response you can find policyName of each device.



来源:https://stackoverflow.com/questions/58532963/android-management-api-list-of-enterprises-policies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!