Skip to main content

List users

User resources can be retrieved as a paged list by passing an optional UserListOptions object as an argument.

list(options?: UserListOptions): Promise<PagedList<User>>

Returns

A Promise that will resolve with a PagedList that contains an array of User objects.

Example

JavaScript
client.security.users.list({
        q: 'mycompany.com',
        pageOptions: { pageIndex: 1, pageSize: 5 },
        order: ['userName']
  })
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call error: ', error);      
});

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