Assigns a group administrator role to a user.
Operation description
You can call this operation to assign a group administrator role to a user.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/role/assign HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | ||
identity | Identity | Yes | The unique identifier of a user. The group administrator role can only be assigned to a user. | |
role_id | string | Yes | The ID of the role that is assigned to a user. Valid value: SystemGroupAdmin. | SystemGroupAdmin |
manage_resource_type | string | Yes | The type of the resource that the role can manage. Valid value: RT_Group. | RT_Group |
manage_resource_id | string | Yes | The ID of the resource that the role can manage. You can only set this parameter to the ID of a group. | 105***b82 |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.