# Calling management API to update user meta data from SPA

**URL:** <https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600>\
**Category:** Get Help\
**Tags:** user\_metadata\
**Created:** [June 16, 2021, 3:43pm UTC](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600 "2021-06-16T15:43:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [June 17, 2021, 11:20am UTC](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600/5 "2021-06-17T11:20:20Z")

</div>

Glad to hear it is working for you!

An alternative approach would be to handle the calls to the Management API in your backend. You would [register your API](https://auth0.com/docs/get-started/set-up-apis) as a custom API and use its identifier as the `audience` in the SPA. You would then create a Machine-to-Machine application for your backend and authorize it to use the Management API. Your backend could use one of the [Auth0 SDKs](https://auth0.com/docs/quickstart/backend) to validate the Access Token and return data from the Management API for the SPA. That way any Access Tokens for the Management API are not exposed on the frontend. (M2M tokens from Auth0 APIs such as the Management API do not count toward the M2M token limit outlined on the pricing page).

> **[Create Machine-to-Machine Applications for Testing](https://auth0.com/docs/get-started/apis/create-m2m-app-test)**
>
> Learn how to register and authorize a test machine-to-machine application for calling Management API endpoints using Access Tokens.

---

_[View the full topic](https://community.auth0.com/t/calling-management-api-to-update-user-meta-data-from-spa/64600)._
