In my Appian environment, I’ve noticed that some groups have UUIDs that start with SYSTEM_GROUP_ followed by the group name, instead of the usual alphanumeric UUID format.How can I logically identify or classify these groups separately from regular groups?
SYSTEM_GROUP_
When I use scimGetGroup() on these SYSTEM_GROUP_ groups, it doesn’t return any group attributes, unlike the other groups with standard UUIDs.Is this expected behavior? And is there a workaround to retrieve attributes for these system groups?
scimGetGroup()
Discussion posts and replies are publicly visible
Ideally those system groups should not be directly used in any application. Yet to answer your question, please see the below code
a!localVariables( local!allGroups: a!groupsForUser(username: loggedInUser()), /*To find and classify system groups from regular groups - This returns 1 for system groups and 0 for regular ones*/ local!systemGroupIndexes: a!foreach( local!allGroups, find("SYSTEM_GROUP", getgroupuuid(fv!item)) ), /* To retrieve group attributes no special code or changes are needed just pass the group object*/ a!foreach( local!allGroups, group(fv!item, "groupName"), ) /*To get all the system groups in one variable*/ /*index(local!allGroups,wherecontains(1,local!systemGroupIndexes),{})*/ )