Back to Node Auth0

Class UserBlocksClient

docs/classes/management.SDK.UserBlocksClient.html

5.9.17.8 KB
Original Source

Class UserBlocksClient

Index

Constructors

constructor

Methods

listByIdentifierdeleteByIdentifierlistdelete

Properties

_options

Constructors

constructor

new UserBlocksClient(options: BaseClientOptions): UserBlocksClient

Parameters

Returns UserBlocksClient

Methods

listByIdentifier

listByIdentifier(
request: ListUserBlocksByIdentifierRequestParameters,
requestOptions?: UserBlocksClient.RequestOptions,
): HttpResponsePromise<ListUserBlocksByIdentifierResponseContent>

Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email).

Parameters

Request-specific configuration.

Returns HttpResponsePromise<ListUserBlocksByIdentifierResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.userBlocks.listByIdentifier({ identifier: "identifier", consider_brute_force_enablement: true })Copy

deleteByIdentifier

deleteByIdentifier(
request: DeleteUserBlocksByIdentifierRequestParameters,
requestOptions?: UserBlocksClient.RequestOptions,
): HttpResponsePromise<void>

Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email).

Note: This endpoint does not unblock users that were blocked by a tenant administrator.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.userBlocks.deleteByIdentifier({ identifier: "identifier" })Copy

list

list(
id: string,
request?: ListUserBlocksRequestParameters,
requestOptions?: UserBlocksClient.RequestOptions,
): HttpResponsePromise<ListUserBlocksResponseContent>

Retrieve details of all Brute-force Protection blocks for the user with the given ID.

Parameters

  • id: string

user_id of the user blocks to retrieve.

Request-specific configuration.

Returns HttpResponsePromise<ListUserBlocksResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.userBlocks.list("id", { consider_brute_force_enablement: true })Copy

delete

delete(
id: string,
requestOptions?: UserBlocksClient.RequestOptions,
): HttpResponsePromise<void>

Remove all Brute-force Protection blocks for the user with the given ID.

Note: This endpoint does not unblock users that were blocked by a tenant administrator.

Parameters

  • id: string

The user_id of the user to update.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.userBlocks.delete("id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listByIdentifierdeleteByIdentifierlistdelete Properties _options