Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
9 subscribers
Views
7950 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I want group membership of user of type system administrator. I used
kaushikr276
A Score Level 2
over 8 years ago
I want group membership of user of type system administrator.
I used getgroupsformemberuser() to get list of groups where user is member.
I used getgroupsforadminuser() to get list of groups that a given user is an administrator but it returns system groups. For basic user, same function returns list of groups that a given user is an administrator.
Is there any other function i can use?
OriginalPostID-215085
OriginalPostID-215085
Discussion posts and replies are publicly visible
Parents
0
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data