Grants permissions on resources to users by using a permission template.
Operation description
You must be a database administrator (DBA) or a Data Management (DMS) administrator. For more information about how to view system roles, see View system roles.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TemplateId | long | Yes | The ID of the permission template. | 1563 |
UserIds | string | Yes | The IDs of users to which you want to grant permissions on resources by using the permission template. | [12***,34***,56***] |
ExpireDate | string | Yes | The time when the permission expires. Specify the time in the yyyy-MM-DD HH:mm:ss format. | 2023-03-08 17:58:53 |
Comment | string | No | The reason why you want to grant permissions on resources to the users by using the permission template. | Business test. |
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. | 3*** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "34E01EDD-6A16-4CF0-9541-C644D1BE01AA",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"Result": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-09-17 | The internal configuration of the API is changed, but the call is not affected | View Change Details |