Removing Permissions of a User Directly Associated with an Enterprise Project
Function
This API is used to remove the permissions of a user 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
DELETE /v3.0/OS-PERMISSION/enterprise-projects/{enterprise_project_id}/users/{user_id}/roles/{role_id}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
enterprise_project_id | Yes | String | Enterprise project ID. |
user_id | Yes | String | User ID. |
role_id | Yes | String | Permission ID. |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | Authenticated token with iam:permissions:revokeRoleFromUserOnEnterpriseProject or Security Administrator permissions. |
Response Parameters
None
Example Request
Request for deleting roles of a user associated with an enterprise project
DELETE https://iam.myhuaweicloud.eu/v3.0/OS-PERMISSION/enterprise-projects/{enterprise_project_id}/users/{user_id}/roles/{role_id} Example Response
None
Status Codes
Status Code | Description |
|---|---|
204 | The request is successful. |
400 | Parameter error. |
401 | Authentication failed. |
403 | Access denied. |
404 | The requested resource cannot be found. |
500 | The system is abnormal. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.

