Could you please tell me how to find User Groups for the logged-in User? because right now I am facing difficulties to find it. Could you help me in this?
Solved! Go to Solution.
you can do this like
let result = Users[principal].GetGroups();
There is a "global" variable named principal which holds the executing users username.
Or you can also user the following
let result = Users[Resources["CurrentSessionInfo"].GetCurrentUser()].GetGroups();
I always use the principal variable.
you can do this like
let result = Users[principal].GetGroups();
There is a "global" variable named principal which holds the executing users username.
Or you can also user the following
let result = Users[Resources["CurrentSessionInfo"].GetCurrentUser()].GetGroups();
I always use the principal variable.