setProjectUserGrant
Gives a user a role on one project and returns their resulting access there. For a space member it replaces the space's default project role on this project; for anyone else it is their access to the project. Owners and admins of the space cannot be given a grant: they always have full access. Requires the project management access, and the role may not give more than you hold. A role that edits any area uses an editor seat of the space's plan for someone outside the space. Their open sessions lose what the change takes away.
Argumente
projectIdID!ID of the project.
roleProjectRoleId!The project role to give.
userIdID!ID of the user.
Rückgabe
ProjectAccess!Beispiel
mutation SetProjectUserGrant($projectId: ID!, $role: ProjectRoleId!, $userId: ID!) {
setProjectUserGrant(projectId: $projectId, role: $role, userId: $userId) {
openableDocKinds
shareOnly
translationLocales
}
}