Interface IUserBlocksClient
- Namespace
- Auth0.Management
Api .Clients
- Assembly
- Auth0.ManagementApi.dll
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
CancellationToken The cancellation token to cancel operation.
Returns
- Task<User
Blocks > The User
Blocks relating to the user requested.
GetByUserIdAsync(string, CancellationToken)
Get a user's blocks by user id.
Parameters
id
stringThe id of the user.
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
- Task<User
Blocks > The User
Blocks relating to the user requested.
UnblockByIdentifierAsync(string, CancellationToken)
Unblock a user by their identifier.
Parameters
identifier
stringThe 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
UnblockByUserIdAsync(string, CancellationToken)
Unblock a user by their id.
Parameters
id
stringThe id of the user to unblock.
cancellationToken
CancellationToken The cancellation token to cancel operation.