---
title: "Add project group"
method: POST
path: "/organization/projects/{project_id}/groups"
tags: ["Project groups"]
---

# Add project group

`POST /organization/projects/{project_id}/groups`

## Request

- Base URL: `https://api.openai.com/v1`
- URL: `https://api.openai.com/v1/organization/projects/{project_id}/groups`
- Auth: HTTP bearer

Grants a group access to a project.

## Path parameters

- `project_id` string, required

## Request body

- InviteProjectGroupBody: Request payload for granting a group access to a project.
  - `group_id` string, required: Identifier of the group to add to the project.
  - `role` string, required: Identifier of the project role to grant to the group.

## Response `200`

Group granted access to the project successfully.

- ProjectGroup: Details about a group's membership in a project.
  - `object` 'project.group', required: Always `project.group`.
  - `project_id` string, required: Identifier of the project.
  - `group_id` string, required: Identifier of the group that has access to the project.
  - `group_name` string, required: Display name of the group.
  - `group_type` 'group' | 'tenant_group', required: The type of the group.
  - `created_at` integer, required: Unix timestamp (in seconds) when the group was granted project access.

## Other responses

- `400`: The request parameters are invalid or the requested operation cannot be performed.
- `403`: The caller does not have permission to perform this operation.
- `404`: The endpoint is unavailable or a requested group, user, or project was not found.
- `429`: The request was rejected because a rate limit was exceeded.
- `500`: The group operation could not be completed because of a server error.

## Changes

- **2026-10-06** `487892d3954e`: 5 info
  - added the optional property `error/anyOf[#/components/schemas/Error]/misalignment/review_target` to the response with the `403` status
  - added the optional property `error/misalignment/review_target` to the response with the `400` status
  - added the optional property `error/misalignment/review_target` to the response with the `404` status
  - added the optional property `error/misalignment/review_target` to the response with the `429` status
  - …1 more
- **2026-10-05** `7f654af7f94f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnistack-sh/apis/openai-api/changes/organization/projects/:project_id/groups/post.md)

---

[API](https://skmtc.dev/omnistack-sh/apis/openai-api.md) - [All operations](https://skmtc.dev/omnistack-sh/apis/openai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omnistack-sh/apis/openai-api/revisions/0a26f104d35f?raw)
