Update User Metadata from Within a Post Change Password Action

Overview

Is it possible to update user metadata from within a post change password action?

Applies To
 
  • Update User Metadata
Solution

It is not possible to directly update user metadata from within a post change password action. There is no `API` object provided within this flow. Additionally, the `event.user` object does not include metadata and only includes information directly pertinent to the password change.

With this in mind, use the management API to update the user's metadata. This can be done directly within the action or from the backend of one's service invoked from within the action.

For details on how to use the management API within actions please refer to this article.

Recommended content

No recommended content found...