Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Solved! Go to Solution.
// For the current user:
let myGroups = Resources["CurrentSessionInfo"].GetCurrentUserGroups();
// For user "alice":
let aliceGroups = Users["alice"].GetGroups();
I believe if you are in the context of 'current user' there is a GetGroups (Something like CurrentSession functions)
and I think the User object itself also supports something like that, but you may need recursion if not 'current user'
I know at one point there were some upgrades to the security mapping services, and there might be some other OOTB service now that can retrieve this, I unfortunately forget which services were added for that. Maybe start by checking here:
// For the current user:
let myGroups = Resources["CurrentSessionInfo"].GetCurrentUserGroups();
// For user "alice":
let aliceGroups = Users["alice"].GetGroups();