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
+2
person also asked this
people also asked this
Replies
4 replies
Answers
2 answers
Subscribers
11 subscribers
Views
3659 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Inactive User
gurdeeps
over 8 years ago
Hi All, Is there any function to get all the inactive users in the system?
OriginalPostID-264616
Discussion posts and replies are publicly visible
+1
aloks0189
Certified Lead Developer
over 8 years ago
@gurdeep did you try using getdeactivatedusersby(......) function, as per the documentation this "Retrieves all the deactivated users matching the given criteria"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
Harsha Sharma
Certified Lead Developer
over 8 years ago
Hi, you can use IsUsernameTaken(). If it helps, I have created an expression rule that checks whether a user exists or not and correspondingly returns the username or null based on the result. Feel free to refer this.
if(
rule!APN_isBlank(
ri!user
),
null,
if(
IsUsernameTaken(
ri!user
),
user(
ri!user,
"firstName"
) & " " & user(
ri!user,
"lastName"
),
ri!user
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
gurdeeps
over 8 years ago
Thanks guys, my issue is resolved.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
sikhivahans
over 8 years ago
The 'status' property in the OOTB function fn!user() should be enough to check the active/inactive status of the User object.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel