SFU.getUserMemberOf()
- Last UpdatedJul 08, 2025
- 1 minute read
Use SFU.getUserMemberOf() method to get the list of groups name to which the logged-in user is the direct member. This API works only with the Microsoft Entra repository.
Syntax
SFU.getUserMemberOf);
Return Value
List of groups name to which the logged-in user is the direct member. If the user is part of multiple groups, comma separated string of the groups is returned.
Example 1
// Gets the Groups for the logged-in user being the direct member
var groups = SFU.getUserMemberOf();
// groups variable would get a value like- "Everyone,skeltalist::Admin"