---
title: "Asset Groups Access"
method: PUT
path: "/api/3/users/{id}/asset_groups"
tags: ["User"]
---

# Asset Groups Access

`PUT /api/3/users/{id}/asset_groups`

Updates the asset groups to which the user has access. Individual asset group access cannot be granted to users with the `allAssetGroups` permission. <br>**Privileges:** Global Administrator

## Path parameters

- `id` integer, required — The identifier of the user.

## Request body

- integer[] — The identifiers of the asset groups to grant the user access to. Ignored if user has access to `allAssetGroups`.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/rapid7/apis/rapid7-vm-api.md) · [All operations](https://skmtc.net/rapid7/apis/rapid7-vm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapid7/rapid7-vm-api/versions/3a8197c22d71/schema)
