Skip to main content

List group user memberships

Log in to add to favourites
C#
1
2
3
public PagedList<User> List(SecurityListOptions listOptions = null) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Management; using Zengenti.Data; // Create a client var client = ManagementClient.Create(); SecurityListOptions listOptions = new SecurityListOptions { PageOptions = new PageOptions(0, 10) }; // Get the group Group group = client.Security.Groups.Get("System Administrators"); // List the users PagedList<User> members = group.Users(listOptions);
C#
1
2
3
public Task<PagedList<User>> List(SecurityListOptions listOptions = null) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Management; using Zengenti.Data; // Create a client var client = ManagementClient.Create(); SecurityListOptions listOptions = new SecurityListOptions { PageOptions = new PageOptions(0, 10) }; // Get the group Group group = await client.Security.Groups.Get("System Administrators"); // List the users PagedList<User> members = await group.UsersAsync(listOptions);

Still need help?

New support request