首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >google企业许可证管理器api -对给定域的未经授权的操作

google企业许可证管理器api -对给定域的未经授权的操作
EN

Stack Overflow用户
提问于 2014-11-18 15:48:35
回答 1查看 1.4K关注 0票数 0

LicenseAssignments.get api返回200 OK

请求:

代码语言:javascript
运行
复制
GET https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/Google-Apps-For-Business/user/<email>

响应:

代码语言:javascript
运行
复制
200 OK

- Show headers -

{
    "kind": "licensing#licenseAssignment",
    "selfLink": "https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/Google-Apps-For-Business/user/<email>",
    "userId": "<email>",
    "productId": "Google-Apps",
    "skuId": "Google-Apps-For-Business"
}

然而,LicenseAssignments.listForProduct返回"403禁忌“

请求:

代码语言:javascript
运行
复制
GET https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/users?customerId=my_customer

响应:

代码语言:javascript
运行
复制
403 Forbidden

- Show headers -

{
    "error": {
    "errors": [
    {
    "domain": "global",
    "reason": "forbidden",
    "message": "Unauthorized operation for the given domain."
    }
    ],
    "code": 403,
    "message": "Unauthorized operation for the given domain."
    }
}

知道为什么我第二次请求被禁止使用403吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-24 15:32:30

当我使用‘域名’(例如something.com)作为'customerId‘时,这个问题就解决了。这与其他Google中“customerId”是“my_customer”的行为不同。

代码语言:javascript
运行
复制
https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/users?customerId=<domain name>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26998293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档