Class OrganizationsClient
- Namespace
- Auth0.ManagementApi.Users
- Assembly
- Auth0.ManagementApi.dll
public class OrganizationsClient : IOrganizationsClient
- Inheritance
-
OrganizationsClient
- Implements
- Inherited Members
- 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 thefromparameter. 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.
public Task<Pager<Organization>> ListAsync(string id, ListUserOrganizationsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestListUserOrganizationsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Users.Organizations.ListAsync(
"id",
new ListUserOrganizationsRequestParameters
{
Page = 1,
PerPage = 1,
IncludeTotals = true,
}
);