I am having a use case to modify user metadata using Nodejs. I couldn't find any proper documentation on how to do it. So, I thought of using the rest api for modifying the user data. I created an API from the console and added audience as "http://localhost:8080", gave authorization to my existing clients and gave "update:user", "read:user" scopes. I am able to create access_token successfully but I am not able to make the API call to read/update the user data. It's showing "Bad audience". Kindly throw some light on this error (couldn't find proper documentation on this issue).
Asked
Active
Viewed 2,612 times
2 Answers
7
You have to use 'Auth0 Management API' from the APIs list. If you create your own API it won't work.

Xzaara
- 71
- 1
7
I had this issue but found that under Auth0 dashboard > APIs > whatever api > Non-Interactive Clients > check to Authorized the clients you want.
BUT - i didnt see at first there is a dropdown here once authorized where you turn on whatever defined scopes that have been prepared from the Scopes tab. Because i didnt click this dropdown i never enabled any scopes even though they were defined. Only blew 5 hrs finding this :/

Steve Pascoe
- 306
- 3
- 10
-
1Where is "Non-Interactive Clients"? I can't find it, does it still exist ? – Piero Alberto Jul 05 '18 at 08:09
-
1@PieroAlberto Looks like the tab is called "Machine to Machine Applications" now – rekamoyka Jul 20 '18 at 22:02