Skip to main content
POST
/
groups
JavaScript SDK
const createdGroups = await client.groups.create([{
  name: 'Developers',
  capabilities: [{
    assetsAcl: {
      actions: ['READ'],
      scope: { all: {}}
    }
  }],
}]);
{
  "items": [
    {
      "name": "Production Engineers",
      "id": 123,
      "isDeleted": false,
      "capabilities": [
        {
          "agentsAcl": {
            "actions": [
              "READ"
            ],
            "scope": {
              "all": {}
            }
          },
          "projectUrlNames": {
            "urlNames": [
              "publicdata"
            ]
          }
        }
      ],
      "metadata": {},
      "attributes": {
        "token": {
          "appIds": [
            "<string>"
          ]
        }
      },
      "sourceId": "b7c9a5a4-99c2-4785-bed3-5e6ad9a78603",
      "deletedTime": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json

List of groups to create.

items
(managedExternally · object | managedInCDF · object)[]
required

A specification for creating a new group

Response

A list of the created groups.

items
(managedExternally · object | managedInCDF · object)[]
required

Group membership managed by the external identity provider

Last modified on April 23, 2026