Skip to main content

List all possible authentication methods of a user​

List all possible authentication methods of a user like password, passwordless, (T)OTP and more

Path Parameters
    userId string required
Responses

OK


Schema
    details object
    totalResult uint64
    processedSequence uint64
    timestamp date-time

    the last time the projection got updated

    authMethodTypes string[]

    Possible values: [AUTHENTICATION_METHOD_TYPE_UNSPECIFIED, AUTHENTICATION_METHOD_TYPE_PASSWORD, AUTHENTICATION_METHOD_TYPE_PASSKEY, AUTHENTICATION_METHOD_TYPE_IDP, AUTHENTICATION_METHOD_TYPE_TOTP, AUTHENTICATION_METHOD_TYPE_U2F, AUTHENTICATION_METHOD_TYPE_OTP_SMS, AUTHENTICATION_METHOD_TYPE_OTP_EMAIL]

GET /v2beta/users/:userId/authentication_methods

Authorization

name: OAuth2type: oauth2scopes: openid,urn:zitadel:iam:org:project:id:zitadel:audflows: {
  "authorizationCode": {
    "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize",
    "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token",
    "scopes": {
      "openid": "openid",
      "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud"
    }
  }
}

Request

Base URL
https://$CUSTOM-DOMAIN
Bearer Token
userId — path required
Accept
curl / cURL
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'