AddTenantUsers
Adds multiple users to a specified MaxCompute tenant and optionally grants existing tenant roles to the added users.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:AddTenantUsers |
update |
*All Resource
|
None | None |
Request syntax
POST /api/v1/tenants/users HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The MaxCompute tenant ID. If omitted, the tenant of the current caller is used. |
1234567890123456 |
| region |
string |
No |
The region ID. If omitted, the region of the current request is used. |
cn-hangzhou |
| body |
string |
No |
The JSON request body. The users field is a non-empty list of users. Each item must include an accountName. If the account name is prefixed with ALIYUN$ or RAM$, the user is added by account name. For other accounts, an accountId must also be provided. The roles field is an optional list of tenant role names. |
{"users":[{"accountName":"RAM$example-owner@example.com:analyst","roles":["example_reader"]}]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when troubleshooting API call issues. |
0be3e0aa16667684362147582e038f |
| data |
string |
Returns success if the operation succeeds. |
success |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.