Google EMM APIs return The caller is not registered as an MDM

无人久伴 提交于 2020-01-02 14:48:41

问题


I'm now testing the Google EMM Apis and I'm trying to generate a signup url for enrolling an enterprise.

scopes = ['https://www.googleapis.com/auth/androidenterprise']

credentials = ServiceAccountCredentials.from_json_keyfile_name(
    'my_key.json', scopes)
http_auth = credentials.authorize(Http())

API = 'androidenterprise'
VERSION = 'v1'
SERVICE = discovery.build(API, VERSION, http=http_auth)

response = SERVICE.enterprises().generateSignupUrl(callbackUrl='http://www.my_site.com').execute()

However, I'm getting as a response a forbidden 403 response code with the following message: "The caller is not registered as an MDM.".

On the Google Admin console, Android for Work is enabled.

I also applied for the EMM Community here: https://connect.googleforwork.com/docs/DOC-13121

One week and still no reply so far. But is this related to my problem?


回答1:


You need to use a master service account of Google EMM API to perform enterprises operations. This is the account that you have been registered as a vendor with by Google. It is registered by a human and this process can not be completed automatically online.



来源:https://stackoverflow.com/questions/41094734/google-emm-apis-return-the-caller-is-not-registered-as-an-mdm

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