Request

Response

    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 operations in this topic:

    TypeOperationDescription
    Mutation addProjectMembers Adds members to a project.

    Add Members to a Project

    The following steps demonstrate how you can run the addProjectMembers mutation to add members to a project.

    1. Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.

      Query

      mutation AddProjectMembers($input: AddProjectMembersInput!) {
         addProjectMembers(input: $input) {
            project {
               id
            }
         }
      }
      
    2. 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 the projectId, 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
    3. 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