Within Usergroups you can map a SSO attribute and value to automatically assign incoming users via SSO to a Usergroup.
These mappings can also be updated via GraphQL in addition to the UI allowing you to make changes en masse.
To update a Usergroups SSO mappings via GraphQL follow these steps:
query UserGroupList {
userGroups(first: 10) {
nodes {
id, name, description,identityAttributeRules {
key
values
}
}
}
}
mutation UpdateUserGroup($input: UpdateUserGroupInput!) {
updateUserGroup(input: $input) {
userGroup {
id
__typename
}
__typename
}
}
Populating the following values under Variables -
{
"input": {
"id": "Copy the CRN from the ID field in the GraphQL output in Step 3",
"name": "Copy the name from the GraphQL output in Step 3 or pass an updated value",
"description": "Copy the description from the GraphQL output in Step 3 or pass an updated value",
"identityAttributeRules": [
{
"key": "Specify the attribute you wish to map on e.g. groups, or roles",
"values": [
"Specify the value for the attribute you wish to map to this usergroup"
]
}
,
{
"key": "Specify any other attribute you wish to map",
"values": [
"Specify the value for the attribute you wish to map to this usergroup"
]
}
]
}
}