---
title: "Update User Permissions"
method: PUT
path: "/setup/account/{accountId}/user"
tags: ["Accounts"]
---

# Update User Permissions

`PUT /setup/account/{accountId}/user`

Change the users' permissions for an account (only accounts under the creator's own organization are allowed). Creator's organization ID is taken from the personal token attached to the API call.

## Path parameters

- `accountId` string, required

## Request body

- union
  - object
    - `userId` string — One of userEmail / userId is required. identify user by its user ID
    - `permissionStrategy` string — Set the user permissions type, by role or by access policy. Valid values "ROLE_BASED", "POLICY_BASED"
    - `role` string — Valid values "viewer", "editor". Required on permissionStrategy = ROLE_BASED
  - object
    - `userId` string — One of userEmail / userId is required. identify user by its user ID
    - `permissionStrategy` string — Set the user permissions type, by role or by access policy. Valid values "ROLE_BASED", "POLICY_BASED"
    - `policyIds` string — Policy IDs
  - object
    - `userId` string — One of userEmail / userId is required. identify user by its user ID
    - `role` string — Valid values "viewer", "editor". Required on permissionStrategy = ROLE_BASED

## Response `200`

Update User Permissions Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
