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.
The API can be called using both the global endpoint and region-specific endpoints.
Authorization Information
Each account is authorized to call all APIs, but its IAM users must obtain the required permissions. For details, see Permissions and Supported Actions.
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 which the enterprise_project_id belongs to 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
Request for querying user groups associated with an enterprise project
GET https://iam.myhuaweicloud.eu/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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

