Returns the current set of valid backup verification codes for the specified user.
HTTP request
GET https://admin.googleapis.com/admin/directory/v1/users/{userKey}/verificationCodes
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
userKey |
Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. |
Request body
The request body must be empty.
Response body
JSON response template for list verification codes operation in Directory API.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"kind": string,
"etag": string,
"items": [
{
object ( |
Fields | |
---|---|
kind |
The type of the resource. This is always |
etag |
ETag of the resource. |
items[] |
A list of verification code resources. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admin.directory.user.security
For more information, see the Authorization guide.
VerificationCode
The Directory API allows you to view, generate, and invalidate backup verification codes for a user.
JSON representation |
---|
{ "userId": string, "verificationCode": string, "kind": string, "etag": string } |
Fields | |
---|---|
userId |
The obfuscated unique ID of the user. |
verificationCode |
A current verification code for the user. Invalidated or used verification codes are not returned as part of the result. |
kind |
The type of the resource. This is always |
etag |
ETag of the resource. |