最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Google Admin SDK Directory RoleAssignments insert API 400 error - Stack Overflow

programmeradmin3浏览0评论

I'm trying to use the RoleAssignments insert API. I've included the customer_id and the required request body, but I'm getting an error saying that resource.identity.identity_id is needed, even though it's not in the documentation.

Below are the example request body and the response. What is the cause of this, and how can I fix it?

request

{
  "assignedTo": "[email protected]",
  "roleId": "1234567890",
  "scopeType": "CUSTOMER"
}

response

{
  "error": {
    "code": 400,
    "message": "Required parameter: [resource.identity.identity_id]",
    "errors": [
      {
        "message": "Required parameter: [resource.identity.identity_id]",
        "domain": "global",
        "reason": "required"
      }
    ]
  }
}
​
发布评论

评论列表(0)

  1. 暂无评论