GrantMemberProjectRoles
Grants workspace roles to a workspace member.
Operation description
You must purchase DataWorks Basic Edition or higher to use this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GrantMemberProjectRoles |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Configuration page to obtain the workspace ID. |
105149 |
| UserId |
string |
Yes |
The account ID of the existing workspace member to whom you want to grant the roles. You can obtain the ID from the |
123422344899 |
| RoleCodes |
array |
Yes |
The codes of the new workspace roles to be granted. You can specify 1 to 10 role codes. You can obtain the codes from the |
|
|
string |
No |
The code of the workspace role. |
role_project_guest |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
2d9ced66-38ef-4923-baf6-391dd3a7e656 |
Examples
Success response
JSON format
{
"RequestId": "2d9ced66-38ef-4923-baf6-391dd3a7e656"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.