---
updatedAt: 2026-09-27T12:46:28.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Update user roles

Update the roles For a list of users

* Remove roles
* Add roles
* Update default role for sharing

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Organization Management"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io/api/v2/user-management"
    }
  ],
  "paths": {
    "/users/roles": {
      "put": {
        "description": "",
        "summary": "Update user roles",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "x-readme": {
          "explorer-enabled": false,
          "code-samples": [
            {
              "code": "{\n  \"userIds\": [\n    \"Lorem dolor\"\n  ],\n  \"roleIdsToRemove\": [\n    \"fugiat pariatur\",\n    \"cupidatat sunt\"\n  ],\n  \"roleIdsToAdd\": [\n    \"tempor elit amet adipisicing\",\n    \"fugiat aute sint\"\n  ],\n  \"defaultRoleForSharingId\": \"dolore sint non\"\n}",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "userIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of user IDs to be updated"
                  },
                  "roleIdsToRemove": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of role IDs to remove from these users"
                  },
                  "roleIdsToAdd": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of role IDs to add to these users"
                  },
                  "defaultRoleForSharingId": {
                    "type": "string",
                    "description": "Set the default role to be used for sharing, for these users."
                  }
                },
                "type": "object",
                "required": [
                  "userIds"
                ]
              }
            }
          }
        },
        "operationId": "put_users-roles"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```