New: build custom CDF applications with Cognite Flows. Documentation · What's new.
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
}
]
}Required capabilities:
groupsAcl:CREATE
Creates one or more named groups, each with a set of capabilities. All users with any group membership in a CDF project automatically get the userProfilesAcl:READ capability and can search for other users. If not assigned automatically, user profiles must be enabled for the project. To enable user profiles, contact support.
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
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
List of groups to create.
A specification for creating a new group
Show child attributes
A list of the created groups.
Group membership managed by the external identity provider
Show child attributes
Was this page helpful?