Table of Contents

Interface IOrganizationsClient

Namespace
Auth0.ManagementApi.Users
Assembly
Auth0.ManagementApi.dll
public interface IOrganizationsClient
Extension Methods

Methods

ListAsync(string, ListUserOrganizationsRequestParameters, RequestOptions?, CancellationToken)

Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations.

This endpoint supports two types of pagination:

  • Offset pagination
  • Checkpoint pagination

Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

Checkpoint Pagination

To search by checkpoint, use the following parameters:

  • from: Optional id from which to start selection.
  • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

Task<Pager<Organization>> ListAsync(string id, ListUserOrganizationsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request ListUserOrganizationsRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<Organization>>