Cant create new users

Can someone assist with API user creation. It was discussed several times in API category, I am following recommendations, the proposed request:

curl -X POST “https://DISCOURSEURL/users.json
-H “Api-Key: b5629e5139axxxxxxxxxxxxxxc93f623b0ab25fcd996bb424c6d5c71”
-H “Api-Username: admin1”
-H “Content-Type: multipart/form-data;”
-F “email=activeuser@example.com
-F “username=activeuser”
-F “password=simplepass”
-F “active=true”
-F “approved=true”

gives “errors”:[“You are not permitted to view the requested resource. The API username or key is invalid.”],“error_type”:“invalid_access”}
the user is admin and API key is valid. the Discourse version is 3.3.0.beta2-dev

1 Like

I have found the solution by setting the API key scopes to the following

2 Likes