Add Members to a Project
This guide will walk you through the steps on how to add members to a Project.
You will use the following queries in this topic:
Type | Operation | Description |
---|---|---|
Query | addProjectMembers | Adds members to a project. |
Add members to a project
The following steps demonstrate how you can run the addProjectMembers query to add members to a project.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
mutation AddProjectMembers($input: AddProjectMembersInput!) { addProjectMembers(input: $input) { project { id } } }
- In the Query Variables Pane, enter the value of the
projectId
,memberRole
(which signifies the role you want to assign to the member), and the list of email addresses of the members you want to add to the project with that particular role. To know how to obtain theprojectId
, refer to Retrieve Projects.Query Variables
{ "input":{ "projectId": "urn:adsk.workspace:beta.project:fdd03533-c3b1-4d26-957e-81594258ae61", "memberRole" : "VIEWER", "emailAddresses": [ "user1@yopmail.com" ] } }
Show More - Click Play. All the members with the specified role and email addresses will be added to the project.
Response
{ "data": { "addProjectMembers": { "project": { "id": "urn:adsk.workspace:beta.project:fdd03533-c3b1-4d26-957e-81594258ae61" } } } }
Show More