Table of Contents | ||
---|---|---|
|
The new user management UI enables you to assign users to groups. But creating new groups is currently not available via UI. So this is a guide which leads you through the calls needed for it.
...
Code Block |
---|
{ "data": { "updateGroup": { "id": "<groupId>", "name": "<groupName>" } } } |
Updating Metadata
The same cURL command can be used to add/update metadata to a group. The metadata can be passed within the parameter named configuration
in the input object.
Below you can see an example where the metadata with key location
with a value switzerland
is added to the group specified with <groupId>
.
Code Block |
---|
curl --location 'https://gateway.<baseUrl>/scope-management/graphql' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <yourToken>' \
--data '{"query":"mutation UpdateGroup($updateGroupId: String!, $input: GroupUpdateInput!) {\n updateGroup(id: $updateGroupId, input: $input) {\n id\n }\n}","variables":{"updateGroupId":"<groupId>","input":{"configuration": {"location": "switzerland"}}}}' |
Deleting Groups
A group can be delted as follows, make sure the groups do not have members anymore.
...