---
title: "Create a new User Group"
method: POST
path: "/setup/access/userGroup"
tags: ["Organizations"]
---

# Create a new User Group

`POST /setup/access/userGroup`

Create a new user-group of your Spot organization

## Request body

- object
  - `id` string — user group id
  - `name` string — Name of the user group. Note: names cannot include these characters: + = @
  - `description` string — user group description
  - `createdAt` string — user group creation timestamp
  - `userIds` string[] — The users to register under the created group (should be existing users only)
  - `policies` object[] — Existing policies to assign to this group.
    - `policyId` string — The existing policy to assign to this group.
    - `accounts` string[] — The accounts to assign to this group. Use "*" if you want to include all current accounts and any accounts created in the future.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/versions/2e5445f30576/schema)
