Registers a new user for your DMS enterprise.
Operation description
Only administrator users in DMS can call this operation. To view administrators, log on to the DMS console and navigate to O&M > User.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:RegisterUser |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. Note
Hover over the profile picture in the upper-right corner of the DMS console to find your tenant ID. Manage DMS tenants. |
-1 |
| Uid |
string |
Yes |
The UID of the Alibaba Cloud account to register. |
12345678 |
| UserNick |
string |
No |
The nickname of the user. |
dmstest |
| RoleNames |
string |
No |
The role to assign to the user. Valid values:
Note
Defaults to USER if not specified. Separate multiple roles with commas (,). |
USER,DBA |
| Mobile |
string |
No |
The mobile number of the user. |
130000000xx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
34E01EDD-6A16-4CF0-9541-C644D1BE01AA |
| ErrorCode |
string |
The error code. |
403 |
| ErrorMessage |
string |
The error message. |
The specified user already exists. |
| Success |
boolean |
|
true |
Examples
Success response
JSON format
{
"RequestId": "34E01EDD-6A16-4CF0-9541-C644D1BE01AA",
"ErrorCode": "403",
"ErrorMessage": "The specified user already exists.",
"Success": true
}
Error response
JSON format
{
"RequestId": "34E01EDD-6A16-4CF0-9541-C644D1BE01AA",
"HostId": "dms-enterprise.aliyuncs.com",
"Code": "UserExisted",
"Message": "The specified user already exists."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.