---
title: "Update user roles"
method: PUT
path: "/users/roles"
---

# Update user roles

`PUT /users/roles`

## Request

- Base URL: `https://api.umbrellacost.io/api/v2/user-management`
- URL: `https://api.umbrellacost.io/api/v2/user-management/users/roles`
- Auth: none declared

## Request body

- object
  - `userIds` string[], required: Array of user IDs to be updated
  - `roleIdsToRemove` string[]: Array of role IDs to remove from these users
  - `roleIdsToAdd` string[]: Array of role IDs to add to these users
  - `defaultRoleForSharingId` string: Set the default role to be used for sharing, for these users.

## Response `200`

---

[API](https://skmtc.dev/umbrellacost/apis/organization-management.md) - [All operations](https://skmtc.dev/umbrellacost/apis/organization-management/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/organization-management/revisions/4178d1d26967?raw)
