Interface IMembersClient
- Namespace
- Auth0.ManagementApi.Organizations
- Assembly
- Auth0.ManagementApi.dll
public interface IMembersClient
- Extension Methods
Properties
Roles
IRolesClient Roles { get; }
Property Value
Methods
CreateAsync(string, CreateOrganizationMemberRequestContent, RequestOptions?, CancellationToken)
Set one or more existing users as members of a specific Organization.
To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.
Task CreateAsync(string id, CreateOrganizationMemberRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestCreateOrganizationMemberRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
DeleteAsync(string, DeleteOrganizationMembersRequestContent, RequestOptions?, CancellationToken)
Task DeleteAsync(string id, DeleteOrganizationMembersRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestDeleteOrganizationMembersRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
ListAsync(string, ListOrganizationMembersRequestParameters, RequestOptions?, CancellationToken)
List organization members. This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it.
-
Use the
fieldsparameter to optionally define the specific member details retrieved. Iffieldsis left blank, all fields (except roles) are returned. -
Member roles are not sent by default. Use
fields=rolesto retrieve the roles assigned to each listed member. To use this parameter, you must include theread:organization_member_rolesscope in the token.
This endpoint supports two types of pagination:
- Offset pagination
- Checkpoint pagination
Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.
Checkpoint Pagination
To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.
Task<Pager<OrganizationMember>> ListAsync(string id, ListOrganizationMembersRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestListOrganizationMembersRequestParametersoptionsRequestOptionscancellationTokenCancellationToken