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
- 200
- 403
- 404
- default
OK
Schema
details object
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
]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-11T10:37:14.058Z"
},
"authMethodTypes": [
"AUTHENTICATION_METHOD_TYPE_UNSPECIFIED"
]
}
Schema
details object
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
]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-11T10:37:14.059Z"
},
"authMethodTypes": [
"AUTHENTICATION_METHOD_TYPE_UNSPECIFIED"
]
}
Schema
details object
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
]
{
"details": {
"totalResult": "2",
"processedSequence": "267831",
"timestamp": "2024-06-11T10:37:14.059Z"
},
"authMethodTypes": [
"AUTHENTICATION_METHOD_TYPE_UNSPECIFIED"
]
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
GET /v2beta/users/:userId/authentication_methods
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "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
Request
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/authentication_methods' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'