Interface IOrganizationsClient
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
public interface IOrganizationsClient
- Extension Methods
Properties
ClientGrants
IClientGrantsClient ClientGrants { get; }
Property Value
DiscoveryDomains
IDiscoveryDomainsClient DiscoveryDomains { get; }
Property Value
EnabledConnections
IEnabledConnectionsClient EnabledConnections { get; }
Property Value
Invitations
IInvitationsClient Invitations { get; }
Property Value
Members
IMembersClient Members { get; }
Property Value
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
requestCreateOrganizationRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
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
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
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
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
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
namestringoptionsRequestOptionscancellationTokenCancellationToken
Returns
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 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.
Task<Pager<Organization>> ListAsync(ListOrganizationsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestListOrganizationsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
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
idstringrequestUpdateOrganizationRequestContentoptionsRequestOptionscancellationTokenCancellationToken