Auth0Client.Management.UserBlock (auth0_client v1.1.0)

Copy Markdown View Source

A module representing user blocks resource on Auth0

Summary

Functions

Gets all user blocks for given identifier. Identifier should be any of: username, phone_number, email

Unblock a block by identifier

Unblock a user

Functions

get(identifier, params \\ %{})

Gets all user blocks for given identifier. Identifier should be any of: username, phone_number, email

Pass consider_brute_force_enablement: true to have Auth0 report blocks it would apply given the tenant's brute-force settings, rather than only those already in place.

iex> Auth0Client.Management.UserBlock.get("some@example.com")
iex> Auth0Client.Management.UserBlock.get("some@example.com", consider_brute_force_enablement: true)

get_user_block(user_id, params \\ %{})

Get a user's block

Takes consider_brute_force_enablement as get/2 does.

iex> Auth0Client.Management.UserBlock.get_user_block("auth0|234234")
iex> Auth0Client.Management.UserBlock.get_user_block("auth0|234234", consider_brute_force_enablement: true)

unblock(identifier)

Unblock a block by identifier

iex> Auth0Client.Management.UserBlock.unblock("some@example.com")

unblock_user(user_id)

Unblock a user

iex> Auth0Client.Management.UserBlock.unblock_user("auth0|2342")