Querying User Groups Associated with an Enterprise Project
Function
This API is used to query the user groups directly associated with a specified enterprise project.
URI
GET /v3.0/OS-PERMISSION/enterprise-projects/{enterprise_project_id}/groups
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enterprise_project_id | Yes | String | ID of the enterprise project for querying the permissions of an associated user group. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Authenticated token with iam:permissions:listGroupsOnEnterpriseProject or Security Administrator permission. The domain_id of the account to which the enterprise_project_id belongs must be the same as the domain_id in the token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| Array of objects | User group information. |
Example Request
GET https://iam.myhuaweicloud.com/v3.0/OS-PERMISSION/enterprise-projects/{enterprise_project_id}/groups Example Response
Status code: 200
The request is successful.
{
"groups" : [ {
"createTime" : 1552093271000,
"description" : null,
"domainId" : "dc7f62ae236c47b8836014c16d64d...",
"id" : "e6bde2403bda43e2813a1a6848963...",
"name" : "auth"
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The request is successful. |
| 400 | Parameter error. |
| 401 | Authentication failed. |
| 403 | Access denied. |
| 404 | The requested resource cannot be found. |
| 415 | Incorrect Content-Type. |
| 500 | A system error occurred. |
Error Codes
For details, see Error Codes.
Last Article: Enterprise Project Management
Next Article: Querying the Permissions of a User Group Associated with an Enterprise Project
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.