Table of Contents

Members

Alex Cota Updated by Alex Cota

A member is an individual user in your organization. Members have different permission levels that can be configured at the organization-level or the project-level.

Below are some common operations the GraphQL API supports for members.

Add member

Add to organization

This will add this user to your organization as an admin. They will have full access to all current and future projects.

mutation MakeNewUserAdmin { 
addMembersToOrganization(
data: {
emails: ["EMAIL_HERE"],
orgRoleId: "cjlvi91a41aab0714677xp87h",
projectRoles: []
}
)
}

This will add a user to your organization as a project-based user. They will only have access to a single project and will only be able to label data.

mutation AddNewProjectBasedUser { 
addMembersToOrganization(
data: {
emails: ["EMAIL_HERE"],
orgRoleId: "cjmb6xy80f5vz0780u3mw2rj4",
projectRoles: [{
roleId: "cjlvi914y1aa20714372uvzjv",
projectId: "PROJECT_ID"
}]
}
)
}
Add to project
mutation AddUserToProject { 
addUserToProject(
data: {
email: "<USER_EMAIL>",
projectId: "<PROJECT_ID>",
roleId: "<ROLE-ID>"
}
) {
user { email }
project { name }
role { name }
}
}

Get member info

Get available roles
query GetAvailableRoles { 
roles {
name
id
}
}
List member projects
query getUserProjects { 
users( where: {email:"<USER-EMAIL>"}) {
id
projects {
name
id
}
}
}

Was this page helpful?

Labels

Asset metadata

Contact