Unauthorized, Bad audience for management api

For me the issue was a bad url in the auth0 doc example…
just needed to change https://login.auth0.com/api/v2/users to https://{accountNamespace}/api/v2