Need help setting user meta data when a user submits auth0 forms

I have a custom auth0 form that is displayed when a user signs up to my react application. I created a custom flow that is intended to save some of the input details from the form as a user metadata eg: state, zipcode etc. The issue i am having is that i have been unable to set the user meta data when the sign up form is submitted. I have followed the tutorials on the website and still no progress at all. On further investigation, when i navigated to the executions tabs, in the flows section of the form i found the following (see images below):



I do not understand why i am getting this error because i set up a vault connection that connects to my M2M application for this flow.
Please i would be very grateful if anyone can assist me in resolving this error :slight_smile:

Hi @swankylex,

Welcome to the Auth0 Community!

It seems like the error is caused by your M2M app not having the correct permissions to be authorized for the Auth0 Management API.

I recommend ensuring that your M2M app has the update:users
update:users_app_metadata and
update:current_user_metadata scopes for the Auth0 Management API.

Thanks,
Rueben

ive been able to add the update:users and update:users_app_metadata scopes, but when i search for update:current_user_metadata, nothing comes up. Please help, thanks

1 Like

Hi @swankylex,

I recommend including the scopes in your API settings by going to the Auth0 Dashboard > Application > APIs > Auth0 Management API > Machine To Machine Applications > Your M2M App and clicking on the drop-down menu to select the required Permissions (scopes).

Thanks,
Rueben

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