Unlink User from Permission

Last Updated on : 2023-10-09 08:06:06download

Based on the permission ID and user ID, unlink a user from the specified permission.

API address

DELETE: /v2.0/cloud/iam/permission/{permission_id}/user/{user_id}

Request parameter

Parameter nameTypeINRequiredDescription
permission_idLonguritrueThe ID of the specified permission.
user_idStringuritrueThe user ID.

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringThe error code. For more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultObjectThe returned result.

Request example

DELETE: /v2.0/cloud/iam/permission/1/user/uid1

Return example

{
    "tid": "f5ffe2440b5111ee8144726abb6617ad",
    "result": true,
    "t": 1686815715734,
    "success": true
}

Error code

For more information, see error code.