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
10 subscribers
Views
4543 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Admin versus basic user
Richard
over 8 years ago
Has anyone written any tempo records that indicate which users are System Administrators?
OriginalPostID-233519
Discussion posts and replies are publicly visible
Top Replies
Eduardo Fuentes
over 8 years ago
+1
Appian Employee
You can do that or: 1. Create a group 2. Open the group and click - Rules 3. Create a rule to "add all users whose user type equals "Administrator" 4. This will add all users automatically that are of…
0
Eduardo Fuentes
Appian Employee
over 8 years ago
Seems to be a duplicate of
forum.appian.com/.../e-233539
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Richard
over 8 years ago
Sort of, but they're really two different issues. Ultimately, yes I do need a tool to identify System Administrators (support has provided that for me!) But I was also curious about why only certain fields in a grid/feed layout were searchable and it turns out that only items that are in the record are searchable, so derived values (e.g. calls to the 'user' function) won't be evaluated against any search criteria the user enters.
At any rate both are solved. Here's what support provided scriptwise
SystemAdmins.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
You can do that or:
1. Create a group
2. Open the group and click - Rules
3. Create a rule to "add all users whose user type equals "Administrator"
4. This will add all users automatically that are of this type
5. Store this group in a constant
6. Simply use
getdistinctusers(topeople(cons!ADMIN_GROUP_FROM_STEP_1))
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Richard
over 8 years ago
That's a great thought! Cheers
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 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 safeguard.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel