问题
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