Is it possible to change the "name" in a post login action?

We have a post login redirect action that gathers some extra info from our users, including their full name. We would like this name to be in the “name” field for auth0 (not in the user_metadata object), as we would like to share it instantly with other apps that use SSO with this account. Is it possible to do this using our post login action? From what I can tell we only have access to setUserMetadata or setAppMetadata

Hey there @jon_s !

Yes, however it’s not exactly straightforward considering it requires using a Management API Access Token to update a user’s name.

Put simply, you’d need to proxy the request to the Managment API to update the user’s name via a backend or similar:

Hope this helps!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.