Hi All,
I am getting error in below expression
a!localVariables( local!userName: "xyzUser", if( isusernametaken(local!userName), a!isUserMemberOfGroup(local!userName, cons!PP_GROUP_CONSTANT), 0 ))
Error as
Expression evaluation error at function a!isUserMemberOfGroup [line 5]: [InvalidUserException]
I observed this issue with deactivated user in only one environment where in lower environment its working fine with deactivate users as well.
Thanks in Advance!
Discussion posts and replies are publicly visible
Even a deactivated user will return true for isusernametaken(). But a!isUserMemberOfGroup() will fail on that exact user. To check whether a user is deactivated, you will need to user the function isuseractive() out of the people functions plugin.
I think it is untrue. It works equally well for a deactivated user as well.
I just did a small test to verify this. isusernametaken() returns true, regardless of whether the user is deactivated or not. a!isUserMemberOfGroup() returns an error for any deactivated user.
Appian 22.2.
Hi Stefan,
Please check below code screenshot. its Appian 21.4.