curl -c cookies -k -v -X POST https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/user/authenticate/ajax/login.jag -d 'action=login&userName=<user name> &password=adminpassword'
The <user name> should be email@organization_key . For example, if the e-mail is [email protected], the <user name> should be [email protected]@organization_key . You can find the organization_key on the Manage page of the cloud.
password: User's password should meet at least three of the below criteria:
Uppercase letters
Lowercase letters
Numbers
Special characters
firstName: User's first name (alphanumeric characters only)
lastName: User's last name (alphanumeric characters only)
roles: User's roles. Can take one or more of the following roles in a comma-separated list: integrationclouduser, subscriber, publisher, admin, devicemgtuser, devicemgtadmin
HTTP Methods
POST
Example
curl -k -v -X POST https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/tenant/users/add/ajax/add.jag -b cookies -H 'ContentType:application/xwwwformurlencoded' -H 'AcceptLanguage:enUS,en;q=0.5' -d 'action=addUserToTenant&[email protected]&password=testPassword&firstName=testFirstName&lastName=testLastName&roles=subscriber'