curl --request GET \
--url https://api.example.com/v1/users/me{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"email": "<string>",
"title": "<string>",
"userType": "USER_TYPE_UNSPECIFIED",
"mfaEnabled": true,
"tempOtpSecret": "<string>",
"tempRecoveryCodes": [
"<string>"
],
"tempOtpSecretCreatedTime": "2023-11-07T05:31:56Z",
"phone": "<string>",
"profile": {
"lastLoginTime": "2023-11-07T05:31:56Z",
"lastChangePasswordTime": "2023-11-07T05:31:56Z",
"source": "<string>"
},
"groups": [
"<string>"
]
}Get the current authenticated user. Permissions required: None
curl --request GET \
--url https://api.example.com/v1/users/me{
"name": "<string>",
"state": "STATE_UNSPECIFIED",
"email": "<string>",
"title": "<string>",
"userType": "USER_TYPE_UNSPECIFIED",
"mfaEnabled": true,
"tempOtpSecret": "<string>",
"tempRecoveryCodes": [
"<string>"
],
"tempOtpSecretCreatedTime": "2023-11-07T05:31:56Z",
"phone": "<string>",
"profile": {
"lastLoginTime": "2023-11-07T05:31:56Z",
"lastChangePasswordTime": "2023-11-07T05:31:56Z",
"source": "<string>"
},
"groups": [
"<string>"
]
}OK
The name of the user. Format: users/{user}. {user} is a system-generated unique ID.
The lifecycle state of the user account.
STATE_UNSPECIFIED, ACTIVE, DELETED The email address of the user, used for login and notifications.
The display title or full name of the user.
The type of user account.
USER_TYPE_UNSPECIFIED, USER, SYSTEM_BOT, SERVICE_ACCOUNT The mfa_enabled flag means if the user has enabled MFA.
Temporary OTP secret used during MFA setup and regeneration.
Temporary recovery codes used during MFA setup and regeneration.
Timestamp when temp_otp_secret was created. Used by frontend to show countdown timer.
Should be a valid E.164 compliant phone number. Could be empty.
User profile metadata.
Show child attributes
The groups for the user. Format: groups/{email}
Was this page helpful?