Skip to main content
POST
/
organisations
/
{organisation_id}
/
groups
Create Group
curl --request POST \
  --url https://platform.versori.com/api/organisations/v1/organisations/{organisation_id}/groups \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "members": [
    "<string>"
  ],
  "roles": [
    "<string>"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "numMembers": 123,
  "numServiceAccounts": 123,
  "roleBindings": [
    {
      "role": {
        "id": "<string>",
        "name": "<string>",
        "permissions": [
          {
            "id": "organisation.read",
            "description": "<string>"
          }
        ],
        "scopes": [
          "organisation"
        ]
      },
      "resource": {
        "resourceType": "organisation",
        "resourceId": "<string>",
        "name": "<string>"
      }
    }
  ]
}

Path Parameters

organisation_id
string
required

Body

application/json
name
string
members
string[]

Members are the list of member IDs to be added to this Group.

roles
string[]

Roles are the list of role names to be granted to this Group at the organisation scope.

Response

Created

Group is a collection of members of an Organisation. Groups can be used to manage access to resources within an Organisation for a set of members.

id
string<ulid>
name
string
numMembers
integer
numServiceAccounts
integer
roleBindings
object[]

RoleBindings are the list of roles bindings granted to this Group.

I