Skip to main content
June 18, 2024
Question

Compare and filter default groups from all groups

  • June 18, 2024
  • 7 replies
  • 0 views

I am trying to create a file having all groups excluding the default groups. Default groups are the groups which are added to user account whenever any user is created like APN All Users, Application Users etc. I have created a constant with default user and trying below.

a!localVariables(
local!groups:rule!UAGR_getAllGroups(),
local!groups1:cons!UAGR_Default_Roles,
expression:union(
rule!UAGR_getAllGroups,
cons!UAGR_Default_Roles
)
)

    7 replies

    konduruc733182
    June 18, 2024

    Hello [mention:3f6ee089926e49918b2fffdf40e4122e:e9ed411860ed4f2ba0265705b8793d05] 

    Union will return a combination of both the arrays. Use symmetricdifference().
    symmetricdifference() Function

    June 18, 2024

    I want to return all rows which are not in constant. In simple language, the roles which are in constant are the roles which should be removed from the roles returned from the expression rule.

    annap0005
    June 19, 2024

    try with difference function.