Skip to main content
C#
public PagedList<User> List(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional user list query, which performs a basic contains on the users firstname, surname, username or email.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the users
PagedList<User> users = client.Security.Users.List(listOptions);

List users specifying page options asynchronously.

Syntax

C#
public async Task<PagedList<User>> ListAsync(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional user list query, which performs a basic contains on the users firstname, surname, username or email.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the users
PagedList<User> users = await client.Security.Users.ListAsync(listOptions);

List users specifying a query to filter users by.

Syntax

C#
public PagedList<User> List(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional user list query, which performs a basic contains on the users firstname, surname, username or email.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the users with a query value of "tyler"
PagedList<User> users = client.Security.Users.List(listOptions, "tyler");

List users specifying a query to filter users by asynchronously.

Syntax

C#
public async Task<PagedList<User>> ListAsync(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional user list query, which performs a basic contains on the users firstname, surname, username or email.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the users with a query value of "tyler"
PagedList<User> users = await client.Security.Users.ListAsync(listOptions, "tyler");

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request