GET /api/sign-in-exp/username-policy/case-sensitivity-conflicts

List groups of usernames that collide when compared case-insensitively (i.e. usernames that would clash if the tenant switched to a case-insensitive username policy), with the total group count and a capped sample. Useful for surfacing conflicts before disabling case sensitivity.

Query parameters

  • limit number Required

    Default value is 20.

Responses

  • 200 application/json

    The total number of case-insensitive username collision groups and a sample of them.

    Hide response attributes Show response attributes object
    • totalConflicts number Required
    • samples array[object] Required
      Hide samples attributes Show samples attributes object
      • usernameLower string Required
      • userIds array[string] Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

GET /api/sign-in-exp/username-policy/case-sensitivity-conflicts
curl \
 --request GET 'https://[tenant_id].logto.app/api/sign-in-exp/username-policy/case-sensitivity-conflicts?limit=20' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "totalConflicts": 42.0,
  "samples": [
    {
      "usernameLower": "string",
      "userIds": [
        "string"
      ]
    }
  ]
}