---
title: "Add an existing org group to a user by authId and orgGroupId"
method: POST
path: "/api/v1/users/{authId}/org-groups/{orgGroupId}"
tags: ["User Org Groups"]
---

# Add an existing org group to a user by authId and orgGroupId

`POST /api/v1/users/{authId}/org-groups/{orgGroupId}`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/oauth2/v1/token`

Required scope - write_user, write_org

## Path parameters

- `authId` string, required
- `orgGroupId` number, required

## Response `200`

- object
  - `success` boolean

## Changes

- **2025-06-20** `2a58bce253cd`: 1 info
  - endpoint added
- **2024-08-11** `11e2773b3a1e`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/changes/api/v1/users/:authId/org-groups/:orgGroupId/post.md)

---

[API](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api.md) - [All operations](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/llms.txt) - [OpenAPI document](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/revisions/52fa61c3fee7?raw)
