Getting issue while adding a default role while sign up

I just encountered this same error. The solution is the same as Get Auth0 Management API invalid token error

That video glosses over the Management API permissions section, and the blog post that accompanies the video does not mention ensuring that your application has the right management api permissions at all

The general solution is making sure that the Auth0 Application associated with the Client ID that is used in the Action has the appropriate Management API Permissions.

  1. Go to Applications → APIs → Auth0 Management API
  2. Click on Machine to Machine Applications
  3. Go to the Application that has the ClientID of the Client you put in Secrets
  4. Make sure that the Authorized slider is green,
  5. Twist open the chevron
  6. Select the Permission that is required. In this case for adding a role to a user you’ll want update:users