Google EMM API返回调用方未注册为MDM [英] Google EMM APIs return The caller is not registered as an MDM

查看:344
本文介绍了Google EMM API返回调用方未注册为MDM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在测试Google EMM Apis,并且试图生成用于注册企业的注册网址.

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()

但是,我得到一个禁止的403响应代码作为响应,并显示以下消息:呼叫者未注册为MDM."

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

在Google管理控制台上,启用了Android for Work.

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

我也在这里申请了EMM社区: https://connect.googleforwork.com/docs/DOC-13121

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?

推荐答案

您需要使用Google EMM API的主服务帐户来执行企业操作.这是您已被Google注册为供应商的帐户.它是由人类注册的,因此该过程无法自动在线完成.

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.

这篇关于Google EMM API返回调用方未注册为MDM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆