User Management via the Console
This section provides the details of the REST APIs used to manage users via the EMM console:
Adding a User
Description | Add a new user to WSO2 EMM using the REST API given below. | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | / | ||||||||||||||||||
URL | /mdm-admin/users/ | ||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||||
cURL command | curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'user.json' -k -v https://localhost:9443/mdm-admin/users/ | ||||||||||||||||||
Sample output | > POST /mdm-admin/users/ HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 131 < HTTP/1.1 201 Created < Date: Sat, 05 Mar 2016 09:12:23 GMT < Content-Type: application/json < Content-Length: 94 < Server: WSO2 Carbon Server {"statusCode":201,"messageFromServer":"User by username: PRIMARY/kim was successfully added."} | ||||||||||||||||||
Sample JSON Definition | { "username":"PRIMARY/kim", "firstname":"Kim", "lastname":"Bar", "emailAddress":"kim@gmail.com", "roles":[ "Marketing" ] }
|
Getting details of users
Description | If you wish to get the details of all the user registered with WSO2 EMM, you can do so using the REST API. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | / | ||||||||||
URL | /mdm-admin/users/
| ||||||||||
HTTP Method | GET | ||||||||||
Request/Response Format | application/json | ||||||||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/ | ||||||||||
Sample output | > GET /mdm-admin/users/ HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 9bc712cabb95bb1c7455274198e005b3 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Fri, 04 Mar 2016 09:39:06 GMT < Content-Type: application/json < Content-Length: 313 < Server: WSO2 Carbon Server < * Connection #0 to host localhost left intact {"statusCode":200,"messageFromServer":"All users were successfully retrieved. Obtained user count: 3","responseContent":[{"username":"admin"},{"username":"foo","firstname":"foo","lastname":"bar","emailAddress":"foo@gmail.com"},{"username":"kim","firstname":"Kim","lastname":"Bar","emailAddress":"kim@gmail.com"}]} | ||||||||||
Sample JSON Output Definition | { "username":"kim", "firstname":"Kim", "lastname":"Bar", "emailAddress":"kim@gmail.com" }
|
Getting details of a user
Description | If you wish to get the details of a specific user that is registered with WSO2 EMM, you can do so using the REST API. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | / | ||||||||||
URL | /mdm-admin/users/view?username={username}
| ||||||||||
HTTP Method | GET | ||||||||||
Request/Response Format | application/json | ||||||||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/view?username={username}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/view?username=kim | ||||||||||
Sample output | > GET /mdm-admin/users/view?username=kim HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Fri, 04 Mar 2016 09:35:51 GMT < Content-Type: application/json < Content-Length: 188 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"User information was retrieved successfully.","responseContent":{"username":"kim","firstname":"Kim","lastname":"Bar","emailAddress":"kim@gmail.com"}} | ||||||||||
Sample JSON Output Definition | { "username":"kim", "firstname":"Kim", "lastname":"Bar", "emailAddress":"kim@gmail.com" }
|
Updating user details
Description | There will be situations where you will want to update the user details. In such situation you can update the user details using the REST API given below. | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | /mdm-admin/users?username={username} | ||||||||||||||||||
HTTP Method | PUT | ||||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||||
cURL command | curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users?username={username}
Example: curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'user.json' -k -v https://localhost:9443/mdm-admin/users?username=kim | ||||||||||||||||||
Sample output | > PUT /mdm-admin/users?username=kim HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 125 < HTTP/1.1 201 Created < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 09:17:09 GMT < Content-Type: application/json < Content-Length: 88 < Server: WSO2 Carbon Server {"statusCode":201,"messageFromServer":"User by username: kim was successfully updated."} | ||||||||||||||||||
Sample JSON Definition | { "username":"kim", "firstname":"Kim", "lastname":"Foo", "emailAddress":"kim@gmail.com", "roles":[ "admin" ] }
|
Sending enrollment invitations
Description | Send the users a mail inviting them to download the EMM mobile application on their devices using the REST API given below. Before running the REST API command to send the enrollment invitations to users make sure to configure WSO2 EMM as explained in step 4, under general server configurations. | ||||||
---|---|---|---|---|---|---|---|
Resource Path |
| ||||||
URL | /mdm-admin/users/email-invitation | ||||||
HTTP Method | POST | ||||||
Request/Response Format | application/json | ||||||
cURL command | curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/email-invitation
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'user.json' -k -v https://localhost:9443/mdm-admin/users/email-invitation | ||||||
Sample output | > POST /mdm-admin/users/email-invitation HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 15e588fd526efa07ce3b4825fd86cdc5 > Content-Length: 25 < HTTP/1.1 200 OK < Date: Sun, 06 Mar 2016 17:10:20 GMT < Content-Type: application/json < Content-Length: 88 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"Email invitation was successfully sent to user."} | ||||||
Sample JSON Definition | [ "jim", "tom", "kim" ]
|
Getting device details of a user
Description | If you wish to get the details of the devices enrolled by a specific user, you can do so using the REST API given below. | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /devices | ||||||||||||||||||||||||||||
URL | /mdm-admin/users/devices?username={username}
| ||||||||||||||||||||||||||||
HTTP Method | GET | ||||||||||||||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||||||||||||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/view?username={username}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/view?username=kim You can filter the device details further, using the query parameters given below:
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/view?username=kim&start=1&length=3 | ||||||||||||||||||||||||||||
Sample output | > GET /mdm-admin/users/devices?username=kim HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 6171fbf32fd653c29f14f0acef1900ca > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 07:04:46 GMT < Content-Type: application/json < Content-Length: 1196 < Server: WSO2 Carbon Server [{"id":1,"name":"titan_umts","type":"android","description":"titan_umts","deviceIdentifier":"359298055243973","enrolmentInfo":{"id":1,"dateOfEnrolment":1457160869352,"dateOfLastUpdate":1457160869352,"ownership":"BYOD","status":"ACTIVE","owner":"admin"},"properties":[{"name":"IMEI","value":"359298055243973"},{"name":"IMSI","value":"413025702363929"},{"name":"DEVICE_MODEL","value":"XT1064"},{"name":"OS_VERSION","value":"6.0"},{"name":"VENDOR","value":"motorola"},{"name":"SERIAL"},{"name":"DEVICE_INFO","value":"[{\"name\":\"IMEI\",\"value\":\"359298055243973\"},{\"name\":\"IMSI\",\"value\":\"413025702363929\"},{\"name\":\"DEVICE_MODEL\",\"value\":\"XT1064\"},{\"name\":\"VENDOR\",\"value\":\"motorola\"},{\"name\":\"OS_VERSION\",\"value\":\"6.0\"},{\"name\":\"DEVICE_NAME\",\"value\":\"titan_umts\"},{\"name\":\"BATTERY_LEVEL\",\"value\":\"88\"},{\"name\":\"INTERNAL_TOTAL_MEMORY\",\"value\":\"5.51\"},{\"name\":\"INTERNAL_AVAILABLE_MEMORY\",\"value\":\"0.43\"},{\"name\":\"EXTERNAL_TOTAL_MEMORY\",\"value\":\"0.0\"},{\"name\":\"EXTERNAL_AVAILABLE_MEMORY\",\"value\":\"0.0\"},{\"name\":\"OPERATOR\",\"value\":\"Dialog\"}]"},{"name":"DEVICE_NAME","value":"titan_umts"},{"name":"GCM_TOKEN"}]}] | ||||||||||||||||||||||||||||
Sample JSON Output Definition | [ { "id": 1, "name": "titan_umts", "type": "android", "description": "titan_umts", "deviceIdentifier": "359298055243973", "enrolmentInfo": { "id": 1, "dateOfEnrolment": 1457160869352, "dateOfLastUpdate": 1457160869352, "ownership": "BYOD", "status": "ACTIVE", "owner": "admin" }, "properties": [ { "name": "IMEI", "value": "359298055243973" }, { "name": "IMSI", "value": "413025702363929" }, { "name": "DEVICE_MODEL", "value": "XT1064" }, { "name": "OS_VERSION", "value": "6.0" }, { "name": "VENDOR", "value": "motorola" }, { "name": "SERIAL" }, { "name": "DEVICE_INFO", "value": "[{\"name\":\"IMEI\",\"value\":\"359298055243973\"},{\"name\":\"IMSI\",\"value\":\"413025702363929\"},{\"name\":\"DEVICE_MODEL\",\"value\":\"XT1064\"},{\"name\":\"VENDOR\",\"value\":\"motorola\"},{\"name\":\"OS_VERSION\",\"value\":\"6.0\"},{\"name\":\"DEVICE_NAME\",\"value\":\"titan_umts\"},{\"name\":\"BATTERY_LEVEL\",\"value\":\"88\"},{\"name\":\"INTERNAL_TOTAL_MEMORY\",\"value\":\"5.51\"},{\"name\":\"INTERNAL_AVAILABLE_MEMORY\",\"value\":\"0.43\"},{\"name\":\"EXTERNAL_TOTAL_MEMORY\",\"value\":\"0.0\"},{\"name\":\"EXTERNAL_AVAILABLE_MEMORY\",\"value\":\"0.0\"},{\"name\":\"OPERATOR\",\"value\":\"Dialog\"}]" }, { "name": "DEVICE_NAME", "value": "titan_umts" }, { "name": "GCM_TOKEN" } ] } ]
|
Getting the role details of a user
Description | A user can be assigned to one or more role in WSO2 EMM. Using the REST API given below you are able to get the role/roles a user is assigned to. |
---|---|
Resource Path | /roles |
URL | /mdm-admin/users/roles?username={username} |
HTTP Method | GET |
Request/Response Format | application/json |
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/roles?username={username}
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/roles?username=kim |
Sample output | > GET /mdm-admin/users/roles?username=kim HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 1ef8b28e74073563fee5c96c526bfa6b > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Fri, 04 Mar 2016 08:57:22 GMT < Content-Type: application/json < Content-Length: 107 < Server: WSO2 Carbon Server < * Connection #0 to host localhost left intact {"statusCode":200,"messageFromServer":"User roles obtained for user kim","responseContent":[["marketing"]]} |
Getting the user count
Description | Get the number of users in WSO2 EMM. |
---|---|
Resource Path | /count |
URL | /mdm-admin/users/count |
HTTP Method | GET |
Request/Response Format | application/json |
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/count
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/count |
Sample output | > GET /mdm-admin/users/count HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer ba1a8c5203d79c0104b69d82f820f96d > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 07:17:24 GMT < Content-Type: application/json < Content-Length: 1 < Server: WSO2 Carbon Server 20 |
Sample JSON Output Definition | Provides the number of users in WSO2 EMM at the time of running the REST API command, as an integer value. Example: As per the above sample output there are 20 users. |
Getting user details by searching via the user name
Description | You will have 100+ users registered with WSO2 EMM. If you wish to retrieve the user details of a specific user, and you only remember part of the user's username, you are able to retrieve the user details by giving a character or a few characters in the username. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /view-users | ||||||||||
URL | /mdm-admin/users/view-users?username={username} | ||||||||||
HTTP Method | GET | ||||||||||
Request/Response Format | application/json | ||||||||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/view-users?username={username}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/view-users?username=i | ||||||||||
Sample output | > GET /mdm-admin/users/view-users?username=kim@gmail.com HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 465488cd92c200d3203d138438e9f24d > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 08:28:07 GMT < Content-Type: application/json < Content-Length: 135 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"All users by username were successfully retrieved. Obtained user count: 3","responseContent":[{"username":"admin"},{"username":"jim","firstname":"Jim","lastname":"Bar","emailAddress":"jim@gmail.com"},{"username":"kim","firstname":"Kim","lastname":"Bar","emailAddress":"kim@gmail.com"}]} | ||||||||||
Sample JSON Output Definition | { "username": "jim", "firstname": "Jim", "lastname": "Bar", "emailAddress": "jim@gmail.com" }, { "username": "kim", "firstname": "Kim", "lastname": "Bar", "emailAddress": "kim@gmail.com" } The user details of the users having the letter I in their user names is given as the output:
|
Searching users via the user name
Description | You will have 100+ users registered with WSO2 EMM. Therefore if you are unsure of the user name of a user and need to retrieve the details of a specific user, you can search for that user by giving a character or a few characters in the username. You will be given a list of users having the user name with the exact order of the characters you provided. | ||||
---|---|---|---|---|---|
Resource Path | /users-by-username | ||||
URL | /mdm-admin/users/users-by-username?username={username} | ||||
HTTP Method | GET | ||||
Request/Response Format | application/json | ||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/users-by-username?username={username}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users/users-by-username?username=k | ||||
Sample output | > GET /mdm-admin/users/userS-by-username?username=k HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 465488cd92c200d3203d138438e9f24d > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 08:17:06 GMT < Content-Type: application/json < Content-Length: 123 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"All users by username were successfully retrieved. Obtained user count: 3","responseContent":["admin","jim","kim"]} | ||||
Sample JSON Output Definition | [ "admin", "jim", "kim" ]
|
Changing the user password
Description | A user is able to change the password to secure their EMM profile via the REST API given below. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /change-password | ||||||||||||
URL | /mdm-admin/users/change-password | ||||||||||||
HTTP Method | POST | ||||||||||||
Request/Response Format | application/json | ||||||||||||
cURL command | curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/change-password
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'user.json' -k -v https://localhost:9443/mdm-admin/users/change-password | ||||||||||||
Sample output | > POST /mdm-admin/users/change-password HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 9ffd50a15654de12e677ebaac9767597 > Content-Length: 83 < HTTP/1.1 201 Created < Date: Mon, 21 Mar 2016 12:22:20 GMT < Content-Type: application/json < Content-Length: 97 < Server: WSO2 Carbon Server {"statusCode":201,"messageFromServer":"User password by username: kim was successfully changed."} | ||||||||||||
Sample JSON Definition | { "username":"kim", "oldPassword":"a2ltJDEyMzQ=", "newPassword":"a2ltJDEyYmFy" }
|
Resetting the user password
Description | In a situation where you need to block a user from accessing their EMM profile, the EMM administrator is able to reset the password. This will change the user's password and the user will not be able to able to login to the account as he/she is not aware of the new password. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /reset-password | |||||||||
URL | /mdm-admin/users/reset-password | |||||||||
HTTP Method | POST | |||||||||
Request/Response Format | application/json | |||||||||
cURL command | curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users/reset-password
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'user.json' -k -v https://localhost:9443/mdm-admin/users/reset-password | |||||||||
Sample output | > POST /mdm-admin/users/reset-password HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 0fd1000b683015149711949919c2ce24 > Content-Length: 65 < HTTP/1.1 201 Created < Date: Tue, 08 Mar 2016 06:43:54 GMT < Content-Type: application/json < Content-Length: 99 < Server: WSO2 Carbon Server {"statusCode":201,"messageFromServer":"User password by username: kim was successfully changed."} | |||||||||
Sample JSON Definition | { username: "kim", oldPassword: "", newPassword: "aGVsbG8=" }
|
Deleting a user
Description | In a situation where an employee leaves the organization you will need to remove the user details from WSO2 EMM. In such situations you can use the the REST API given below to remove a user. |
---|---|
URL | /mdm-admin/users?username={username} |
HTTP Method | DELETE |
Request/Response Format | application/json |
cURL command | curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/users?username={username}
Example: curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/users?username=kim |
Sample output | > DELETE /mdm-admin/users?username=kim HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sat, 05 Mar 2016 09:22:19 GMT < Content-Type: application/json < Content-Length: 90 < Server: WSO2 Carbon Server < {"statusCode":200,"messageFromServer":"User by username: kim was successfully removed."} |