# Ensure you're logged in: auth0 login
auth0 api get "user-blocks" --query "identifier=identifier" --query "consider_brute_force_enablement=true"
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.UserBlocks.ListByIdentifierAsync(
new ListUserBlocksByIdentifierRequestParameters {
Identifier = "identifier",
ConsiderBruteForceEnablement = true
}
);
}
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.userBlocks().listByIdentifier(
ListUserBlocksByIdentifierRequestParameters
.builder()
.identifier("identifier")
.considerBruteForceEnablement(true)
.build()
);
}
}
<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\UserBlocks\Requests\ListUserBlocksByIdentifierRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->userBlocks->listByIdentifier(
new ListUserBlocksByIdentifierRequestParameters([
'identifier' => 'identifier',
'considerBruteForceEnablement' => true,
]),
);
# Ensure you're logged in: auth0 login
auth0 api get "user-blocks" --query "identifier=identifier" --query "consider_brute_force_enablement=true"
using Auth0.ManagementApi;
using System.Threading.Tasks;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.UserBlocks.ListByIdentifierAsync(
new ListUserBlocksByIdentifierRequestParameters {
Identifier = "identifier",
ConsiderBruteForceEnablement = true
}
);
}
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.ListUserBlocksByIdentifierRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.userBlocks().listByIdentifier(
ListUserBlocksByIdentifierRequestParameters
.builder()
.identifier("identifier")
.considerBruteForceEnablement(true)
.build()
);
}
}
<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\UserBlocks\Requests\ListUserBlocksByIdentifierRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->userBlocks->listByIdentifier(
new ListUserBlocksByIdentifierRequestParameters([
'identifier' => 'identifier',
'considerBruteForceEnablement' => true,
]),
);