Skip to main content

Create a group

POST 

/groups

Creates a group in your tenant, optionally with members.

A new group grants nothing by itself. It becomes an access path only once a permission set is assigned to it with POST /permission-set-assignments, and from that moment everyone in it holds that access.

Three shape notes. The response is 200, not 201, and carries no Location header. A name that is already taken comes back as a 500, not a 409. Prism does not translate the directory's conflict, so read error to tell a duplicate from a genuine failure. And subGroups in the request body is accepted and then ignored by everything.

Members named in users are added after the group exists, and the group is read back before that happens, so the response never reflects them. Each add is best-effort: a username that matches no user is skipped silently and the call still returns 200 regardless. Confirm the membership afterwards with GET /groups/{groupName}/members.

The body of this response is the directory's own administrative group representation, passed through unmodified. Prism does not map it to a shape of its own, so its exact field set depends on the version and the configuration of the directory behind your deployment, and additional fields may be present that are not listed here. Treat the response as sensitive: do not log it, and read only the fields you need.

Request​

Responses​

The group was created. The body is the directory's representation of the group as stored, read back before any members named in users were added.