Adds an application account to a specified user in the current application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:AddApplicationAccountToUser |
create |
*User
*ApplicationAccount
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
eiam-111ccc1111 |
| ApplicationId |
string |
Yes |
The application ID. |
app_11111 |
| UserId |
string |
Yes |
The user ID. |
user_example |
| ApplicationUsername |
string |
Yes |
The name of the application account. |
zhangsan |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| ApplicationAccountId |
string |
The ID of the application account. |
aac_m6z7awz5kresi2ezgajsbkxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"ApplicationAccountId": "aac_m6z7awz5kresi2ezgajsbkxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.