Click or drag to resize

IGroupGetAllUserIds Method

Returns the identifiers of users members of the current group and all of his recursively sub-groups.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
IList<int> GetAllUserIds()

Return Value

Type: IListInt32
Returns the list of user identifiers.
Examples

Get the list of all users members of the current group and all of his recursively sub-groups.

var group = GroupFactory.FindById(context, 3);
var userIds = group.GetAllUserIds();
foreach(int userId in userIds)
{
    Console.WriteLine($"User id: {userId}");
}
See Also