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

**URL:** <https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [October 10, 2024, 3:27pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568 "2024-10-10T15:27:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swankylex](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/swankylex/32/61241_2.png) [@swankylex](https://community.auth0.com/u/swankylex)\
**Post date:** [October 10, 2024, 3:27pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568/1 "2024-10-10T15:27:06Z")

</div>

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):

 ![Screenshot (2)](https://global.discourse-cdn.com/auth0/original/3X/f/3/f352f35918d6d2274fe84a84ea22d1c90d4b1404.png)  
 ![Screenshot (3)](https://global.discourse-cdn.com/auth0/original/3X/6/0/6021d905e6d7f04cb98a7f139612edbfcf1b0e59.png)  
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 🙂

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 10, 2024, 5:44pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568/3 "2024-10-10T17:44:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![swankylex](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/swankylex/32/61241_2.png) [@swankylex](https://community.auth0.com/u/swankylex)\
**Post date:** [October 10, 2024, 10:08pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568/4 "2024-10-10T22:08:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 15, 2024, 5:47pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568/5 "2024-10-15T17:47:07Z")

</div>

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_](https://manage.auth0.com/#/apis) and clicking on the drop-down menu to select the required Permissions (scopes).

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 29, 2024, 5:47pm UTC](https://community.auth0.com/t/need-help-setting-user-meta-data-when-a-user-submits-auth0-forms/149568/6 "2024-10-29T17:47:49Z")

</div>

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