Hello, when I’m trying to create a user via management api using the auth0 SDK for .NET, I’m getting this error:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /users</pre>
</body>
</html>
This is the code:
var token = await _authService.GetToken();
var client = new ManagementApiClient(token, new Uri(_configuration["Auth:Domain"]));
await client.Users.CreateAsync(new UserCreateRequest
{
Email = request.Email,
FullName = request.Email,
Password = _configuration["Auth:DefaultPassword"],
EmailVerified = false
});
And I allowed all the scopes on my API
If someone needs more information to investigate, let me know.
Thanks