GitHub user DaanHoogland added a comment to the discussion: 401 error in cloudstack createUser rest api
@waiphyodev , I suppose you left out the signature on purpose and did include it in your attempts to create a user. there is “account” between the URL and the rest of the parameters, my try looks like ``` http://host/client/api/?command=createAccount&response=json&sessionkey=… ``` and is a post request with parameters. ``` roleid=<role-id>&username=userthree&password=password&email=userthree%40mail.com&firstname=User&lastname=Three&domainid=<domain-id> ``` if this seems ok, Have a look at the rights of the executing user, Do they have rights to this API. GitHub link: https://github.com/apache/cloudstack/discussions/11146#discussioncomment-13669110 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org