---
title: "User - Update Policy Mapping"
method: PUT
path: "/setup/user/{userId}/policyMapping"
tags: ["Organizations"]
---

# User - Update Policy Mapping

`PUT /setup/user/{userId}/policyMapping`

Update the mapping of a given user directly to policies

## Parameters

- `#/paths/~1setup~1user~1%7BuserId%7D/get/parameters/0` — unresolved $ref

## Request body

- object
  - `policies` object[] — Existing policies to assign to this user.
    - `policyId` string — Existing policy ID to assign to this user.
    - `accountIds` string[] — The account IDs to assign to this user. Use "*" if you want to include all current accounts and any accounts created in the future.

## 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)
