Table of Contents

Interface IOrganizationsClient

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

Properties

ClientGrants

IClientGrantsClient ClientGrants { get; }

Property Value

IClientGrantsClient

DiscoveryDomains

IDiscoveryDomainsClient DiscoveryDomains { get; }

Property Value

IDiscoveryDomainsClient

EnabledConnections

IEnabledConnectionsClient EnabledConnections { get; }

Property Value

IEnabledConnectionsClient

Invitations

IInvitationsClient Invitations { get; }

Property Value

IInvitationsClient

Members

IMembersClient Members { get; }

Property Value

IMembersClient

Methods

CreateAsync(CreateOrganizationRequestContent, RequestOptions?, CancellationToken)

Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization.

WithRawResponseTask<CreateOrganizationResponseContent> CreateAsync(CreateOrganizationRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

request CreateOrganizationRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<CreateOrganizationResponseContent>

DeleteAsync(string, RequestOptions?, CancellationToken)

Remove an Organization from your tenant. This action cannot be undone.

Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

Task DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

Task

GetAsync(string, RequestOptions?, CancellationToken)

Retrieve details about a single Organization specified by ID.

WithRawResponseTask<GetOrganizationResponseContent> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<GetOrganizationResponseContent>

GetByNameAsync(string, RequestOptions?, CancellationToken)

Retrieve details about a single Organization specified by name.

WithRawResponseTask<GetOrganizationByNameResponseContent> GetByNameAsync(string name, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

name string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<GetOrganizationByNameResponseContent>

ListAsync(ListOrganizationsRequestParameters, RequestOptions?, CancellationToken)

Retrieve detailed list of all Organizations available in your tenant. For more information, see 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(ListOrganizationsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

request ListOrganizationsRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<Organization>>

UpdateAsync(string, UpdateOrganizationRequestContent, RequestOptions?, CancellationToken)

Update the details of a specific Organization, such as name and display name, branding options, and metadata.

WithRawResponseTask<UpdateOrganizationResponseContent> UpdateAsync(string id, UpdateOrganizationRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request UpdateOrganizationRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<UpdateOrganizationResponseContent>