Error: Bad audience when calling aph0 / user / user_id

I have a use case for modifying custom metadata using Nodejs. I could not find the correct documentation on how to do this. So, I thought about using the rest of the api to modify user data. I created the API from the console and added the audience as " http: // localhost: 8080 ", gave authorization to my existing clients and gave "update: user", "read: user". I can create access_token successfully, but I cannot make an API call to read / update user data. It shows "Bad Audience." Please shed light on this error (could not find relevant documentation on this issue).

+7
auth0 auth0-delegated-admin
source share
2 answers

You should use the "Auth0 Management API" from the API list. If you create your own API, this will not work.

+6
source share

I had this problem, but I found that in the toolbar Auth0> API> regardless of api> Non-Interactive Clients> check the Authorized clients you want box.

BUT - I did not see it first when you enable the drop-down list where you include all the specific areas that were prepared on the "Areas" tab. Since I did not click this drop-down list, I never included any areas, although they were defined. Only exploded for 5 hours upon discovering this: /

+3
source share

All Articles