Event.User with missing properties executing an Auth0 custom action

Hi @marmv90,

Thanks for reaching out to the Auth0 Community!

I understand that you would like to get the complete user profile with Actions.

It appears that you are using a Post-Change-Password Action, which only has the email, email_verified, id, last_password_reset, and user_id properties available. This is consistent with our https://auth0.com/docs/actions/triggers/post-change-password/event-object documentation.

As a workaround, you could use the Management API with Actions and query for the complete user profile that way.
Please read our FAQ on How can I use the Management API in Actions? .

Then, you will need to take the event.user.user_id and pass it to the Management API GET/api/v2/users/{id} endpoint.

After doing so, you should have the full user profile.

Please let me know if you have any other questions. I’d be happy to help.

Thank you.

1 Like