How to Identify System Groups with SYSTEM_GROUP_ UUIDs in Appian

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? 

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?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    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),{})*/
    )

Reply
  • 0
    Certified Lead Developer

    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),{})*/
    )

Children
No Data