group
NOTE: Be careful in granting permissions to non-readonly identity group endpoints. If a user can modify group membership, they can add their entity to a group with higher privileges.
Create a group
This endpoint creates or updates a Group.
POST
/identity/group
Parameters
name
(string: entity-<UUID>)
– Name of the group. If set (and ID is not set), updates the corresponding existing group.id
(string: <optional>)
- ID of the group. If set, updates the corresponding existing group.type
(string: "internal")
- Type of the group,internal
orexternal
. Defaults tointernal
.metadata
(key-value-map: {})
– Metadata to be associated with the group.policies
(list of strings: [])
– Policies to be tied to the group.member_group_ids
(list of strings: [])
- Group IDs to be assigned as group members.member_entity_ids
(list of strings: [])
- Entity IDs to be assigned as group members.
Sample payload
Sample request
Sample response
Read group by ID
This endpoint queries the group by its identifier.
GET
/identity/group/id/:id
Parameters
id
(string: <required>)
– Identifier of the group.
Sample request
Sample response
Update group by ID
This endpoint is used to update an existing group.
POST
/identity/group/id/:id
Parameters
id
(string: <required>)
– Identifier of the entity.name
(string: entity-<UUID>)
– Name of the group.type
(string: "internal")
- Type of the group,internal
orexternal
. Defaults tointernal
.metadata
(key-value-map: {})
– Metadata to be associated with the group.policies
(list of strings: [])
– Policies to be tied to the group.member_group_ids
(list of strings: [])
- Group IDs to be assigned as group members.member_entity_ids
(list of strings: [])
- Entity IDs to be assigned as group members.
Sample payload
Sample request
Sample response
Delete group by ID
This endpoint deletes a group.
DELETE
/identity/group/id/:id
Parameters
id
(string: <required>)
– Identifier of the group.
Sample request
List groups by ID
This endpoint returns a list of available groups by their identifiers.
LIST
/identity/group/id
GET
/identity/group/id?list=true
Sample request
Sample response
Create/Update group by name
This endpoint is used to create or update a group by its name.
POST
/identity/group/name/:name
Parameters
name
(string: entity-<UUID>)
– Name of the group.type
(string: "internal")
- Type of the group,internal
orexternal
. Defaults tointernal
.metadata
(key-value-map: {})
– Metadata to be associated with the group.policies
(list of strings: [])
– Policies to be tied to the group.member_group_ids
(list of strings: [])
- Group IDs to be assigned as group members.member_entity_ids
(list of strings: [])
- Entity IDs to be assigned as group members.
Sample payload
Sample request
Sample response
Read group by name
This endpoint queries the group by its name.
GET
/identity/group/name/:name
Parameters
name
(string: <required>)
– Name of the group.
Sample request
Sample response
Delete group by name
This endpoint deletes a group, given its name.
DELETE
/identity/group/name/:name
Parameters
name
(string: <required>)
– Name of the group.
Sample request
List groups by name
This endpoint returns a list of available groups by their names.
LIST
/identity/group/name
GET
/identity/group/name?list=true
Sample request
Sample response
Last updated