---
title: "Update Group Mappings"
method: PUT
path: "/api/v1/auth/group-mappings"
tags: ["authentication"]
---

# Update Group Mappings

`PUT /api/v1/auth/group-mappings`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/api/v1/auth/group-mappings`
- Auth: none declared

Update SSO group → role mappings (admin only).

## Request body

- GroupMappingsUpdateRequest: Body for PUT /auth/group-mappings.
  - `mappings` GroupMappingEntry[], required
    - `group` string, required
    - `role` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Invalid role value
- `401`: Authentication required
- `403`: Admin role required
- `404`: SSO authentication is not configured on this server
- `422`: Validation Error

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
