Project member management skill
Use natural language commands to instruct code agents, such as Qoder and CodeX, to manage members in a Dataphin project by adding, removing, updating, or querying them. This document describes the skill's functionality, prerequisites, usage examples, and expected results. The appendix lists the required input parameters.
Overview
The Project Member Management skill lets you use natural language to manage members and roles in a Dataphin project. You can perform four operations: add members and assign roles, remove members, update member roles, and query the member list. The hierarchy is tenant → project → project member (user + role + environment). Roles are represented by integer codes that correspond to project administrator, developer, guest, analyst, and O&M.
Use cases:
-
Add new developers or O&M staff to a project and assign them the appropriate roles.
-
Adjust a member's role, for example, promoting a guest to a developer.
-
Remove project members in bulk who no longer need access.
-
Query the list of project members and their roles.
Limitations: Roles are passed as integer codes (1: project administrator, 2: developer, 3: guest, 4: analyst, 5: O&M). When adding or updating a member, you must specify at least one valid role code. For projects using a DEV/PROD separation (DEV_PROD) model, you typically need to explicitly specify the environment (DEV or PROD); otherwise, the member might be added to only one environment. Adding, removing, and updating are write operations. For these operations, the agent confirms the changes with you and waits for your approval before proceeding.
Prerequisites
-
You have the required permissions to manage members in the target project.
-
You have the project ID of the target project and the user IDs for the members you want to manage.
-
You know which role(s) to assign. For projects using the DEV/PROD separation model, you must also specify the target environment (DEV or PROD).
Usage examples
Describe your request to the agent in natural language. Here are some examples:
-
"Add my colleague to this project as a developer."
-
"Change this member's role from guest to analyst."
-
"Remove these members from this project."
-
"List all members in this project and their roles."
Interaction steps:
-
After you issue a member management command, the agent confirms the target project, the users involved, the role to be assigned, and the target environment.
-
For write operations, the agent summarizes the planned changes and asks for your confirmation before proceeding.
-
After executing the operation, the agent reports whether the request was accepted.
-
To verify the change, the agent typically queries the member list again to confirm that the update has taken effect.
Execution results
After the operation is complete, you can expect the following results:
-
Response content: For add, remove, and update operations, the response indicates the status of the request. For query operations, it returns the project member list with their corresponding roles and environments.
-
Completion status: A successful command response indicates that the system has accepted the request and is applying the changes.
-
Verification: You can verify the changes by querying the member list. In projects with DEV/PROD separation, there might be a brief synchronization delay between the two environments.
A successful response only indicates that the system has accepted the request. For final confirmation, always check the member and role information in the Dataphin UI.
Appendix: Input parameters
The following table lists the parameters for managing project members. The agent automatically identifies these parameters from your command and prompts you if any are missing. You do not need to provide system-generated parameters.
|
Parameter |
Required |
Description |
Example |
|
tenant ID |
Yes |
The 19-digit ID of the target Dataphin tenant. |
1234567890123456789 |
|
project ID |
Yes |
The 19-digit ID of the project whose members you want to manage. |
1234567890123456789 |
|
environment |
Conditionally Required |
The target environment. Required for projects using the DEV/PROD separation model. Valid values: DEV, PROD. |
DEV |
|
user ID |
Yes |
The ID of the user to add, remove, or modify. |
— |
|
role code |
Conditionally Required |
The integer code for a role. Required when adding or updating a member. Valid codes: 1 (project administrator), 2 (developer), 3 (guest), 4 (analyst), and 5 (O&M). |
2 (developer) |