---
title: "Creating a new Access Group Membership"
method: POST
path: "/access_group_memberships"
tags: ["Access Group Memberships"]
---

# Creating a new Access Group Membership

`POST /access_group_memberships`

## Request

- Base URL: `https://api.mavenlink.com/api/v1`
- URL: `https://api.mavenlink.com/api/v1/access_group_memberships`
- Auth: none declared

Adds a user to an access group. Note: To add a user to the Account Administrators access group, you must update
the user's account membership permission instead.


This endpoint returns structured Access Group Membership objects.
As with all Kantata OX API endpoints, the returned data will be referenced in sorted order in the `results` array
and will be indexed by ID in the `access_group_memberships` top-level JSON key.
Please see our [Response Format](#section/Response-Format) section for more information.

## Query parameters

- `include` string

## Request body

- object
  - `access_group_membership` object
    - `access_group_id` integer, required: The ID of the access group to add the user to.
    - `user_id` integer, required: The ID of the user to add to the access group.

## Response `200`

Access Group Membership has been created.

- object
  - `count` integer
  - `meta` object
    - `count` integer
    - `page_count` integer
    - `page_number` integer
    - `page_size` integer
  - `results` object[]
    - `key` string
    - `id` string
  - `access_group_memberships` object
  - `users` object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized request
- `403`: Forbidden request
- `404`: Page Not Found
- `422`: Unprocessable Entity
- `503`: Service is unavailable

---

[API](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation.md) - [All operations](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/kantata/apis/kantata-ox-api-documentation/revisions/9d4ebed2fa98?raw)
