Table of Contents

Interface IOrganizationsClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface IOrganizationsClient

Methods

AddMemberRolesAsync(string, string, OrganizationAddMemberRolesRequest, CancellationToken)

Add members to an organization.

Task AddMemberRolesAsync(string organizationId, string userId, OrganizationAddMemberRolesRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to add roles to the given user.

userId string

The id of the user for which you want to add roles.

request OrganizationAddMemberRolesRequest

The OrganizationAddMemberRolesRequest containing the roles.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous operation.

AddMembersAsync(string, OrganizationAddMembersRequest, CancellationToken)

Add members to an organization.

Task AddMembersAsync(string organizationId, OrganizationAddMembersRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to add members.

request OrganizationAddMembersRequest

The OrganizationAddMembersRequest containing the members.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous operation.

CreateAsync(OrganizationCreateRequest, CancellationToken)

Creates a new organization.

Task<Organization> CreateAsync(OrganizationCreateRequest request, CancellationToken cancellationToken = default)

Parameters

request OrganizationCreateRequest

The OrganizationCreateRequest containing the properties of the new organization.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Organization>

The new Organization that has been created.

CreateClientGrantAsync(string, OrganizationCreateClientGrantRequest, CancellationToken)

Associate a client grant with an organization

Task<OrganizationClientGrant> CreateClientGrantAsync(string organizationId, OrganizationCreateClientGrantRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization to which you want to associate the client grant.

request OrganizationCreateClientGrantRequest

The OrganizationCreateClientGrantRequest containing the properties of the Client Grant to associate with the organization.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationClientGrant>

The new ClientGrant that has been created.

CreateConnectionAsync(string, OrganizationConnectionCreateRequest, CancellationToken)

Creates a new organization connection.

Task<OrganizationConnection> CreateConnectionAsync(string organizationId, OrganizationConnectionCreateRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to add the connection.

request OrganizationConnectionCreateRequest

The OrganizationConnectionCreateRequest containing the properties of the new organization connection.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationConnection>

The new OrganizationConnection that has been created.

CreateInvitationAsync(string, OrganizationCreateInvitationRequest, CancellationToken)

Creates a new organization invitation.

Task<OrganizationInvitation> CreateInvitationAsync(string organizationId, OrganizationCreateInvitationRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization to which you want to invite a user.

request OrganizationCreateInvitationRequest

The OrganizationCreateInvitationRequest containing the properties of the new organization invitation.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationInvitation>

The new OrganizationInvitation that has been created.

DeleteAsync(string, CancellationToken)

Deletes an organization.

Task DeleteAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The id of the organization to delete.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

DeleteClientGrantAsync(string, string, CancellationToken)

Remove a client grant from an organization.

Task DeleteClientGrantAsync(string organizationId, string clientGrantId, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to delete the client grant.

clientGrantId string

The id of the client grant you want to delete from the organization

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

DeleteConnectionAsync(string, string, CancellationToken)

Deletes an organization connection.

Task DeleteConnectionAsync(string organizationId, string connectionId, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to delete the connection.

connectionId string

The id of the connection to delete from the organization.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

DeleteInvitationAsync(string, string, CancellationToken)

Deletes an organization invitation.

Task DeleteInvitationAsync(string organizationId, string invitationId, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to delete the invitation.

invitationId string

The id of the invitation you want to remove.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

DeleteMemberAsync(string, OrganizationDeleteMembersRequest, CancellationToken)

Deletes members from an organization.

Task DeleteMemberAsync(string organizationId, OrganizationDeleteMembersRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to delete the members.

request OrganizationDeleteMembersRequest

The OrganizationDeleteMembersRequest containing the members.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

DeleteMemberRolesAsync(string, string, OrganizationDeleteMemberRolesRequest, CancellationToken)

Deletes roles from an organization member.

Task DeleteMemberRolesAsync(string organizationId, string userId, OrganizationDeleteMemberRolesRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to delete roles for a given user.

userId string

The id of the user for which you want to remove roles.

request OrganizationDeleteMemberRolesRequest

The OrganizationDeleteMemberRolesRequest containing the roles.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

GetAllAsync(CheckpointPaginationInfo, CancellationToken)

Retrieves a list of all organizations using checkpoint pagination.

Task<ICheckpointPagedList<Organization>> GetAllAsync(CheckpointPaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

pagination CheckpointPaginationInfo

Specifies CheckpointPaginationInfo to use in requesting checkpoint-paginated results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ICheckpointPagedList<Organization>>

An ICheckpointPagedList<T> containing the organizations.

GetAllAsync(PaginationInfo, CancellationToken)

Retrieves a list of all organizations.

Task<IPagedList<Organization>> GetAllAsync(PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<Organization>>

An IPagedList<T> containing the organizations.

GetAllClientGrantsAsync(string, OrganizationGetClientGrantsRequest, PaginationInfo, CancellationToken)

Get client grants associated with an organization.

Task<IPagedList<OrganizationClientGrant>> GetAllClientGrantsAsync(string organizationId, OrganizationGetClientGrantsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to retrieve the client grants.

request OrganizationGetClientGrantsRequest

Specifies criteria to use when querying client grants for the organization.

pagination PaginationInfo

Specifies PaginationInfo to use in requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<OrganizationClientGrant>>

A IPagedList<T> containing the client grants requested.

GetAllConnectionsAsync(string, PaginationInfo, CancellationToken)

Retrieves a list of all organization connections.

Task<IPagedList<OrganizationConnection>> GetAllConnectionsAsync(string organizationId, PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The ID of the organization for which you want to retrieve the connections.

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<OrganizationConnection>>

An IPagedList<T> containing the organization connections.

GetAllInvitationsAsync(string, OrganizationGetAllInvitationsRequest, PaginationInfo, CancellationToken)

Retrieves a list of all organization invitations.

Task<IPagedList<OrganizationInvitation>> GetAllInvitationsAsync(string organizationId, OrganizationGetAllInvitationsRequest request, PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to retrieve the invitations.

request OrganizationGetAllInvitationsRequest

The OrganizationGetAllInvitationsRequest containing the properties to retrieve the organization invitations.

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<OrganizationInvitation>>

An IPagedList<T> containing the organization members.

GetAllMemberRolesAsync(string, string, PaginationInfo, CancellationToken)

Retrieves a list of all roles for an organization members.

Task<IPagedList<Role>> GetAllMemberRolesAsync(string organizationId, string userId, PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to retrieve the roles for a given user.

userId string

The id of the user for which you want to retrieve the roles.

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<Role>>

An IPagedList<T> containing the organization members.

GetAllMembersAsync(string, OrganizationGetAllMembersRequest, CheckpointPaginationInfo, CancellationToken)

Retrieves a list of all organization members using checkpoint pagination.

Task<ICheckpointPagedList<OrganizationMember>> GetAllMembersAsync(string organizationId, OrganizationGetAllMembersRequest request, CheckpointPaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The ID of the organization for which you want to retrieve the members.

request OrganizationGetAllMembersRequest

Specifies criteria to use when querying organization members.

pagination CheckpointPaginationInfo

Specifies CheckpointPaginationInfo to use in requesting checkpoint-paginated results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ICheckpointPagedList<OrganizationMember>>

An ICheckpointPagedList<T> containing the organization members.

GetAllMembersAsync(string, OrganizationGetAllMembersRequest, PaginationInfo, CancellationToken)

Retrieves a list of all organization members.

Task<IPagedList<OrganizationMember>> GetAllMembersAsync(string organizationId, OrganizationGetAllMembersRequest request, PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The ID of the organization for which you want to retrieve the members.

request OrganizationGetAllMembersRequest

Specifies criteria to use when querying organization members.

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<OrganizationMember>>

An IPagedList<T> containing the organization members.

GetAllMembersAsync(string, CheckpointPaginationInfo, CancellationToken)

Retrieves a list of all organization members using checkpoint pagination.

Task<ICheckpointPagedList<OrganizationMember>> GetAllMembersAsync(string organizationId, CheckpointPaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The ID of the organization for which you want to retrieve the members.

pagination CheckpointPaginationInfo

Specifies CheckpointPaginationInfo to use in requesting checkpoint-paginated results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<ICheckpointPagedList<OrganizationMember>>

An ICheckpointPagedList<T> containing the organization members.

GetAllMembersAsync(string, PaginationInfo, CancellationToken)

Retrieves a list of all organization members.

Task<IPagedList<OrganizationMember>> GetAllMembersAsync(string organizationId, PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

organizationId string

The ID of the organization for which you want to retrieve the members.

pagination PaginationInfo

Specifies pagination info to use when requesting paged results.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<OrganizationMember>>

An IPagedList<T> containing the organization members.

GetAsync(string, CancellationToken)

Retrieves an organization by its id.

Task<Organization> GetAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The id of the organization to retrieve.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Organization>

The Organization retrieved.

GetByNameAsync(string, CancellationToken)

Retrieves an organization by its name.

Task<Organization> GetByNameAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string

The name of the organization to retrieve.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Organization>

The Organization retrieved.

GetConnectionAsync(string, string, CancellationToken)

Retrieves an organization connection by its id.

Task<OrganizationConnection> GetConnectionAsync(string organizationId, string connectionId, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to retrieve the connection.

connectionId string

The id of the connection to retrieve.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationConnection>

The OrganizationConnection retrieved.

GetInvitationAsync(string, string, OrganizationGetInvitationRequest, CancellationToken)

Retrieves an organization invitation by its id.

Task<OrganizationInvitation> GetInvitationAsync(string organizationId, string invitationId, OrganizationGetInvitationRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to retrieve the invitation.

invitationId string

The id of the organization invitation to retrieve.

request OrganizationGetInvitationRequest

The OrganizationGetInvitationRequest containing the properties to retrieve the organization invitation.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationInvitation>

The OrganizationInvitation retrieved.

UpdateAsync(string, OrganizationUpdateRequest, CancellationToken)

Updates an organization.

Task<Organization> UpdateAsync(string id, OrganizationUpdateRequest request, CancellationToken cancellationToken = default)

Parameters

id string

The id of the organization you want to update.

request OrganizationUpdateRequest

The OrganizationUpdateRequest containing the properties of the organization you want to update.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Organization>

The Organization that was updated.

UpdateConnectionAsync(string, string, OrganizationConnectionUpdateRequest, CancellationToken)

Updates an organization connection.

Task<OrganizationConnection> UpdateConnectionAsync(string organizationId, string connectionId, OrganizationConnectionUpdateRequest request, CancellationToken cancellationToken = default)

Parameters

organizationId string

The id of the organization for which you want to update the connection.

connectionId string

The id of the connection you want to update for the organization.

request OrganizationConnectionUpdateRequest

The OrganizationConnectionUpdateRequest containing the properties of the organization connection you want to update.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<OrganizationConnection>

The OrganizationConnection that was updated.