Skip to content

change_collaborator_role

Change the project role for an active collaborator. Requires Owner role on the project. target_user_id: UUID of the collaborator to update. role: one of ‘viewer’, ‘editor’, ‘owner’. Cannot demote the only project owner. Returns: grant_id, project, user_id, new_role.

NameTypeRequiredDefaultDescription
project_namestrYes
target_user_idstrYes
rolestrYes

Returns a structured object. Top-level fields:

  • grant_id (string)
  • project (string)
  • user_id (string)
  • new_role (string)

See the response example below for the full payload shape.

{
"name": "change_collaborator_role",
"arguments": {
"project_name": "forecasts",
"target_user_id": "33333333-3333-3333-3333-333333333333",
"role": "owner"
}
}
{
"grant_id": "99999999-9999-9999-9999-999999999999",
"project": "forecasts",
"user_id": "33333333-3333-3333-3333-333333333333",
"new_role": "owner"
}
  • Module: Collaborators
  • Requires authentication via API token or Auth0 JWT.