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
stringThe identifier of the user. Can be a user's email address, username or phone number.
cancellationToken
CancellationTokenThe 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
stringThe id of the user.
cancellationToken
CancellationTokenThe 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
stringThe identifier of the user to unblock. Can be a user's email address, username or phone number.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
UnblockByUserIdAsync(string, CancellationToken)
Unblock a user by their id.
Task UnblockByUserIdAsync(string id, CancellationToken cancellationToken = default)
Parameters
id
stringThe id of the user to unblock.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.