Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
5 replies
Answers
1 answer
Subscribers
4 subscribers
Views
5324 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
137567 - no subject - How can i get all the users with user ty
rickyc633
over 10 years ago
How can i get all the users with user type "System Administrator"?
OriginalPostID-137567
Discussion posts and replies are publicly visible
0
pavithrac
over 10 years ago
Hi Ricky. As far as i know, there is no direct Expression Function. But we can check a particular userTypeName by using User function Ex: user("ricky","userTypeName"). This will return Administrator or User. Hope this helps...........
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Steven Miccile
Appian Employee
over 10 years ago
You can create a group. Then create a membership rule (from the 'Rules' tab) for the group to "add users whose 'User Type' 'equals' 'Administrator' ".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
..and with the group that include all Administrators in place you can retrieve all its users by doing something like this (where ADMINS_GROUP is a constant that points to that group you created using the suggestion from the user above)
=getdistinctusers(topeople(cons!ADMINS_GROUP))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rickyc633
over 10 years ago
Thank you pavithrac, Stevan and Eduardo :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
Ben Anderson
over 6 years ago
To determine the system admins, you can run the following expression:
=load(
local!designerUsers: getdistinctusers(getgroupbyname("Designers")),
local!adminUsers: apply(fn!isusersystemadministrator,local!designerUsers),
index(local!designerUsers,where(local!adminUsers),{})
)
The default Designers group contains all system admins by rule, but non-admin users can be added to the group so the second step is needed as a safety check.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel