メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
user-blocks
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &management.ListUserBlocksByIdentifierRequestParameters{
        Identifier: "identifier",
        ConsiderBruteForceEnablement: management.Bool(
            true,
        ),
    }
    client.UserBlocks.ListByIdentifier(
        context.TODO(),
        request,
    )
}
{
  "blocked_for": [
    {
      "connection": "<string>",
      "identifier": "john.doe@gmail.com",
      "ip": "10.0.0.1"
    }
  ]
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

クエリパラメータ

identifier
string
必須

username、電話番号、またはメールアドレスのいずれかである必要があります。

consider_brute_force_enablement
boolean
true で、Brute Force Protection が有効で、かつログインをブロックするよう設定されている場合は、ブロックされた IP アドレスの一覧を返します。
true で、Brute Force Protection が無効な場合は、空の一覧を返します。

レスポンス

ユーザーを正常に取得しました。

blocked_for
object[]

識別子と IP アドレスのペアの配列。IP アドレスは省略可能で、特定の状況では省略される場合があります(アカウントロックアウトモードなど)。