Hello,
We have an issue where the Appian user() function is not returning information correctly for basic users. For administrative users, the function works correctly.
Example, on calling user("userId", "firstName") from a SAIL form assigned to a basic user is returning "userId" instead of firstName. If asked for "lastName", it returns empty value. However, if the form is reassigned to an administrative user the correct value of firstName & lastName is returned. Additionally, if the form is assigned to the same user whose value is asked for the function returns the information correctly.
Is there any security/permission related setting that we could be missing? This started happening after the environment was restored.
Thanks in advance for your help,
Harish
Discussion posts and replies are publicly visible
Yes this is likely related to security on the user profile. It sounds like either your site has default visibility set to none, or you have processes that have removed basic users from each others View role map.
First, I'd like at the settings in the Admin Console:
docs.appian.com/.../Appian_Administration_Console.html
If you need this locked down generally, but also need certain users to be able to view other users, then look into:
docs.appian.com/.../Modify_User_Security_Smart_Service.html
Alternatively, if you are running these user() expressions unattendeed, such as in a script task, then try running the script task as the process designer rather than as an initiator)