---
title: "Set"
method: PUT
path: "/api/v2/users/{user_id}/owners"
tags: ["User Owner V2"]
---

# Set

`PUT /api/v2/users/{user_id}/owners`

Set replaces all owners for a given user (service account) and role.

## Path parameters

- `user_id` string, required — The userId field.

## Request body

- C1ApiUserV2SetUserOwnersV2RequestInput — SetUserOwnersV2Request is the request for setting the owners of a user (service account) for a given role.
  - `appEntitlementRefs` C1ApiAppV1AppEntitlementRef[], nullable — The appEntitlementRefs field.
    - `appId` string — The appId field.
    - `id` string — The id field.
  - `roleSlug` string — The roleSlug field.
  - `userRefs` C1ApiUserV1UserRef[], nullable — The userRefs field.
    - `id` string — The id of the user.

## Response `200`

SetUserOwnersV2Response is the empty response for setting user owners.

- C1ApiUserV2SetUserOwnersV2Response — SetUserOwnersV2Response is the empty response for setting user owners.

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/f2cf3228f366/schema)
