Table of Contents

Interface IUserBlocksClient

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

Methods

GetByIdentifierAsync(string, CancellationToken)

Get a user's blocks by identifier.

Task<UserBlocks> GetByIdentifierAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string

The identifier of the user. Can be a user's email address, username or phone number.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<UserBlocks>

The UserBlocks relating to the user requested.

GetByUserIdAsync(string, CancellationToken)

Get a user's blocks by user id.

Task<UserBlocks> GetByUserIdAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The id of the user.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<UserBlocks>

The UserBlocks relating to the user requested.

UnblockByIdentifierAsync(string, CancellationToken)

Unblock a user by their identifier.

Task UnblockByIdentifierAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string

The identifier of the user to unblock. Can be a user's email address, username or phone number.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous unblock operation.

UnblockByUserIdAsync(string, CancellationToken)

Unblock a user by their id.

Task UnblockByUserIdAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The id of the user to unblock.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous unblock operation.