---
title: "Set user groups"
method: PUT
path: "/group/access"
tags: ["group access"]
---

# Set user groups

`PUT /group/access`

## Request

- Base URL: `https://public.stonly.com/api/v3`
- URL: `https://public.stonly.com/api/v3/group/access`
- Auth: HTTP basic

Overwrites a user's memberships, removing them from current groups and adding them only to the specified ones.

## Query parameters

- `teamId` integer

## Request body

- Access
  - `email` Schema, required (unresolved $ref)
  - `groups` object[], required
    - `groupId` Schema (unresolved $ref)

## Response `200`

User group memberships updated successfully.

## Other responses

- `404`: User not found.
- `default`: Standard error response.

---

[API](https://skmtc.dev/stonly/apis/stonly-public-api.md) - [All operations](https://skmtc.dev/stonly/apis/stonly-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stonly/apis/stonly-public-api/revisions/4ba5b03a634a?raw)
