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.
- Go to Applications → APIs → Auth0 Management API
- Click on Machine to Machine Applications
- Go to the Application that has the ClientID of the Client you put in Secrets
- Make sure that the Authorized slider is green,
- Twist open the chevron
- Select the Permission that is required. In this case for adding a role to a user you’ll want
update:users