Retrieves the details of a specific member in a Workspace.
Operation description
This operation is available only in DataWorks Basic Edition and later.
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 sign in to the DataWorks Console and go to the Workspace Management page to obtain the Workspace ID. This parameter is used to identify the DataWorks workspace that you want to access. |
88757 |
| UserId |
string |
Yes |
The ID of the user. To find the ID, sign in to the DataWorks Console, go to the Management Center, select the target Workspace, and open the Tenant Members and Roles page. |
123422**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. Use this 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 ID of the user. |
123422344899 |
| Status |
string |
The status of the Workspace member.
|
Normal |
| Roles |
array<object> |
Roles assigned to the Workspace member. |
|
|
object |
Details of an assigned role. |
||
| Code |
string |
The code of the Workspace role. The built-in system roles in a DataWorks Workspace include:
|
role_project_guest |
| Name |
string |
The name of the Workspace role. |
Visitors |
| Type |
string |
The type of the Workspace role.
|
System |
| UserName |
string |
The name of the user. |
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": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.