Hi All,
Is there any out of the box way find who are all basic users and System admin users in any appian environment?
Thanks in Advance.
Discussion posts and replies are publicly visible
Hi RPathuri
You can make use of the property 'userTypeId' in the 'user' function to differentiate the Basic User and System Admin (The output will be 1 for System Admin and 0 for Basic User).
You can deploy the People Functions - Plugin and make use of 'getallusers' function to get all the users in your environment. I would recommend executing this in batches.
Hi Ramp,
Find the below code which will help you to find out the Basic and System Admin Users.
a!forEach( getallusers( startIndex:1, batchSize: - 1 ), if( user( username:fv!item, property:"userTypeId" ) = 1, "System Admin: " & fv!item, "Basic User: " & fv!item ))