How to get the group for which logged-in user of an application is the direct member?
Discussion posts and replies are publicly visible
Hello Vivek,
You have the loggeInUser() to know the actual logged in user.
If you have the list of groups you are interested then you have the option to loop using the function isusermemberofgroup.
I could think of then using the following groupMembers() It has a parameter to get the direct users.
meanwhile let me think if there is something else
Jose
References
https://docs.appian.com/suite/help/19.1/fnc_people_loggedinuser.html
https://docs.appian.com/suite/help/19.1/fnc_people_isusermemberofgroup.html
https://docs.appian.com/suite/help/19.1/fnc_people_a_groupmembers.html
-- updated to complement ----
I know some of this functions have been deprecated there is a function on the peoples Plugin
getgroupsformemberuser which could help here
Reference
https://community.appian.com/b/appmarket/posts/people-functions---plug-in