added

New ability to update a user's custom role

🏷️ API version: 2025-04

You can now update a user's custom role using the role_id argument on the update_users_role mutation. You can obtain available role_id values by querying the new account_roles type.

Custom roles are only available on Enterprise plans.

mutation {
  update_users_role (user_ids: [12345, 54321], role_id: "5") {
    updated_users {
      name
    }
    errors {
      user_id
      code
      message
    }
  }
}