Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Create a password reset token.
This will create a cryptographically secure random password reset token for the user.
If the user already has a password reset token then this invalidates the old token and creates a new one.
The token is expressed as the 'password_reset_url' of the user's email/password credential object.
This takes an optional 'expires' param to indicate if the new token should be an expiring token.
Tokens that expire are typically used for self-service password resets for existing users.
Invitation emails for new users typically are not set to expire.
The expire period is always 60 minutes when expires is enabled.
This method can be called with an empty body.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Create Password Reset Token\n\nVersion 4.0.25.14 (latest)\n\n### Create a password reset token.\n\nThis will create a cryptographically secure random password reset token for the user.\nIf the user already has a password reset token then this invalidates the old token and creates a new one.\nThe token is expressed as the 'password_reset_url' of the user's email/password credential object.\nThis takes an optional 'expires' param to indicate if the new token should be an expiring token.\nTokens that expire are typically used for self-service password resets for existing users.\nInvitation emails for new users typically are not set to expire.\nThe expire period is always 60 minutes when expires is enabled.\nThis method can be called with an empty body.\n\nCalls to this endpoint may be denied by [Looker (Google Cloud core)](https://cloud.google.com/looker/docs/r/looker-core/overview).\n\nRequest\n-------\n\nPOST /users/{user_id}/credentials_email/password_reset \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nuser_id \nstring \nId of user \nquery \nHTTP Query \nExpand HTTP Query definition... \nexpires \nboolean \nExpiring token. \nfields \nstring \nRequested fields.\n\nResponse\n--------\n\n### 200: email/password credential\n\nDatatype \nDescription \n(object) \n[CredentialsEmail](/looker/docs/reference/looker-api/latest/types/CredentialsEmail) \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \ncreated_at \n*lock* \nstring \nTimestamp for the creation of this credential \nemail \nstring \nEMail address used for user login \nforced_password_reset_at_next_login \nboolean \nForce the user to change their password upon their next login \nuser_id \n*lock* \nstring \nUnique Id of the user \nis_disabled \n*lock* \nboolean \nHas this credential been disabled? \nlogged_in_at \n*lock* \nstring \nTimestamp for most recent login using credential \npassword_reset_url \n*lock* \nstring \nUrl with one-time use secret token that the user can use to reset password \naccount_setup_url \n*lock* \nstring \nUrl with one-time use secret token that the user can use to setup account \npassword_reset_url_expired \n*lock* \nboolean \nIs password_reset_url expired or not present? \naccount_setup_url_expired \n*lock* \nboolean \nIs account_setup_url expired or not present? \ntype \n*lock* \nstring \nShort name for the type of this kind of credential \nurl \n*lock* \nstring \nLink to get this item \nuser_url \n*lock* \nstring \nLink to get this user\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 403: Permission Denied\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]