您好我正在尝试使用 google cloud identity apis 来检索在我的组织下使用 CI 注册的用户列表。我首先尝试使用此 api https://cloud.google.com/identity/docs/reference/rest/v1/groups/list将组织 ID 作为父字段传递,但出现以下错误:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
我也尝试过使用https://cloud.google.com/identity/docs/reference/rest/v1/groups/get传递“groups/”作为名称,但这次我得到了这个输出:
{
"error": {
"code": 403,
"message": "Error(2017): User does not have permission to get group 'groups/abcpi1tg3uve2ab' (or it may not exist).",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceType": "cloudidentity.googleapis.com/Group",
"resourceName": "groups/abcpi1tg3uve2ab",
"owner": "domain:cloudidentity.googleapis.com",
"description": "Error(2017): User does not have permission to get group 'groups/abcpi1tg3uve2ab' (or it may not exist)."
}
]
}
}
并且我使用的是用于登录管理控制台的同一帐户。我正在使用超级管理员用户通过 apis explorer 测试 apis。谁能告诉我我做错了什么以及第一个api中“父”必填字段的确切含义?