GetProjectMember
Queries the details of a workspace member.
Operation description
You must purchase DataWorks Basic Edition or higher to use this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetProjectMember |
get |
*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 Management page to obtain the ID. This parameter specifies the DataWorks workspace used to invoke this API operation. |
88757 |
| UserId |
string |
Yes |
The account ID of the workspace member to query. You can obtain the ID from the PagingInfo.ProjectMembers[].UserId parameter returned by the ListProjectMembers operation. |
123422344899 |
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. |
8abcb91f-d266-4073-b907-2ed670378ed1 |
| ProjectMember |
object |
The details of the workspace member. |
|
| ProjectId |
integer |
The ID of the workspace. |
88757 |
| UserId |
string |
The DataWorks account ID. |
123422344899 |
| Status |
string |
The status of the workspace member. Valid values:
|
Normal |
| Roles |
array<object> |
The list of workspace roles granted to the workspace member. |
|
|
object |
The details of the granted workspace role. |
||
| Code |
string |
The code of the workspace role. The following built-in workspace roles are provided in DataWorks:
|
role_project_guest |
| Name |
string |
The name of the workspace role. |
Visitors |
| Type |
string |
The type of the workspace role. Valid values:
|
System |
| UserName |
string |
The cloud account name of the member. |
liusan |
Examples
Success response
JSON format
{
"RequestId": "8abcb91f-d266-4073-b907-2ed670378ed1",
"ProjectMember": {
"ProjectId": 88757,
"UserId": "123422344899",
"Status": "Normal",
"Roles": [
{
"Code": "role_project_guest",
"Name": "Visitors",
"Type": "System"
}
],
"UserName": "liusan"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.