When I try to create user from the endpoint https://my_tenant.eu.auth0.com/api/v2/users I get the following response:
{“statusCode”:400,“error”:“Bad Request”,“message”:“Sandbox Error: App ‘My_App’ cannot be used for user registration.”}
In the Auth0 Management API section, Machine to Machine Applications My_App (Blazor Server web application) is correctly authorized to use managment API ad to create users
var client = new RestClient(“https://mytenant.eu.auth0.com/api/v2/users”);
var request = new RestRequest(Method.POST);
request.AddHeader(“authorization”, $“Bearer {mytoken}”);
request.AddJsonBody(user);
return await client.ExecuteAsync(request);
It looks like this error is coming from one of your Pre registration actions. This makes sense, as I can’t find any record of this error message otherwise.