Users

Get user active grants

Changed on

Retrieve all non-expired grants of the user. Optionally filter by application type via appType; when omitted, grants from all application types are returned.

get/api/users/{userId}/grants

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/users/{userId}/grants
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

userIdstring required

The unique identifier of the user.

Query parameters

appType'firstParty' | 'thirdParty'

Application type filter. Use 'thirdParty' to list third-party app grants only, or 'firstParty' to list first-party app grants only. If omitted, grants from all applications are returned.

Response

Return non-expired grants of the user. Results are filtered by app type when appType is provided.

Changes

    • breaking

      the /// response property's maxLength was unset from 21 for the response status

    • breaking

      the /// response property's maxLength was unset from 256 for the response status

    • breaking

      the /// response property's minLength was decreased from 1 to 0 for the response status

    • breaking

      the /// response property's minLength was decreased from 1 to 0 for the response status