Skip to main content
Create a group

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
acl
string[]

Names of the ACLs the group should carry. Their rights are what the group grants to its members. An ACL that is not allowed for organizations cannot be put on a group that belongs to one, and an organization administrator may use only ACLs their organization is entitled to - those of its edition, add-ons granted to it and feature ACLs.

Minimum string length: 1
description
string | null

Free-text note on what the group is for. It is shown next to the group in administration lists and is searchable, but it is not the group's name - that is displayName.

Example:

"Users with administrative rights for the organization"

displayName
object[]

Localized names of the group, one entry per language. This is the label clients show for the group, so give at least the tenant's own language a value.

organization
string | null

Identifier of the organization to file the group under, which has to be a group of type organization. Only a global administrator may choose it; for an organization administrator the value is ignored and their own organization is used.

Example:

"d1b33e20-715e-441d-145c-a0796122b6e0"

type

Extra roles the group should play besides granting its ACLs: settings makes it a carrier of shared configuration for its members, visibility makes it a group content can be made visible to. Leave it out for a plain user group. The remaining types describe an organization and its structure and cannot be created here.

Available options:
settings,
visibility
Example:
users
string[]

Usernames to put into the group right away. Each one has to belong to an account that exists and is active; the whole call is rejected if any of them does not.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$

Response

Returns the identifier and the version of the new group.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"

version
integer

Current version of the record. Send it back with the next update so a concurrent change is not overwritten silently.

Example:

3