VerificationCodes: generate

Generate new backup verification codes for the user. Try it now.

Request

HTTP request

POST https://www.googleapis.com/admin/directory/v1/users/userKey/verificationCodes/generate

Parameters

Parameter name Value Description
Path parameters
userKey string Email or immutable ID of the user

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/admin.directory.user.security

For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns an empty response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.