Role Management via the Console
This section provides the details of the REST APIs used to manage user roles via the EMM console:
Adding a role
Description | You are able to add a new role to WSO2 EMM using the REST API given below. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | / | ||||||||||||
URL | /mdm-admin/roles/ | ||||||||||||
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/roles/
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'role.json' -k -v https://localhost:9443/mdm-admin/roles/ | ||||||||||||
Sample output | > POST /mdm-admin/roles/ HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 0f963270d06e0859dc8fabeb2b4fa7d1 > Content-Length: 68 < HTTP/1.1 201 Created < Date: Sun, 06 Mar 2016 13:20:03 GMT < Content-Length: 0 < Server: WSO2 Carbon Server | ||||||||||||
Sample JSON Definition | { "roleName": "engineer", "permissions": [ "device-mgt/policies/view", "device-mgt/users/view" ], "users": [ "jim" ] }
|
Adding users to a role
Description | Defining the users to a role at the point of creating a new role is optional, therefore you are able to update the users that belong to a given role after you have created a role using this REST API. Example: Your Organization hires 30 new engineers. Updating the role details for each user can be cumbersome, therefore you can define all the new employees that belong to the engineering role using this API. | ||||||
---|---|---|---|---|---|---|---|
URL | /mdm-admin/roles/users?rolename={rolename} | ||||||
HTTP Method | PUT | ||||||
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/roles/users?rolename={rolename}
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'role.json' -k -v https://localhost:9443/mdm-admin/roles/users?rolename=engineer | ||||||
Sample output | > PUT /mdm-admin/roles/users?rolename=engineer HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 25 < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 13:45:02 GMT < Content-Length: 0 < Server: WSO2 Carbon Server | ||||||
Sample JSON Definition | [ "jim", "tom", "kim" ]
|
Getting the list of roles
Description | If you wish to get the details of all the roles in WSO2 EMM, you can do so using the REST API given below: | ||||
---|---|---|---|---|---|
Resource Path | / | ||||
URL | /mdm-admin/roles/ | ||||
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/roles/
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/ | ||||
Sample output | > GET /mdm-admin/roles/ HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer a99d5fff08eefff282b413d86cac7d00 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 11:35:51 GMT < Content-Type: application/json < Content-Length: 131 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"All user roles were successfully retrieved.","responseContent":["admin","marketing"]} | ||||
Sample JSON Output Definition | [ "admin", "marketing" ]
|
Getting details of a role
Description | If you wish to get the details of a role in WSO2 EMM, you can do so using the REST API given below: | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /role | ||||||||||||||||
URL | /mdm-admin/roles/role?rolename={rolename} | ||||||||||||||||
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/roles/role?rolename={rolename}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/role?rolename=engineer | ||||||||||||||||
Sample output | > GET /mdm-admin/roles/role?rolename=engineer HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer edb6f10b30a452a7db4a5b4f40325386 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Mon, 07 Mar 2016 08:57:03 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Server: WSO2 Carbon Server < {"statusCode":200,"messageFromServer":"All user roles were successfully retrieved.","responseContent":{"roleName":"engineer","permissions":["/permission/admin/device-mgt","/permission/admin/device-mgt/admin-device-access","/permission/admin/device-mgt/android","/permission/admin/device-mgt/android/devices","/permission/admin/device-mgt/android/devices/enroll","/permission/admin/device-mgt/android/devices/list","/permission/admin/device-mgt/android/devices/update","/permission/admin/device-mgt/android/devices/update-app","/permission/admin/device-mgt/android/devices/view","/permission/admin/device-mgt/android/license","/permission/admin/device-mgt/android/license/view","/permission/admin/device-mgt/android/operations","/permission/admin/device-mgt/android/operations/application-list","/permission/admin/device-mgt/android/operations/blacklist-applications","/permission/admin/device-mgt/android/operations/camera","/permission/admin/device-mgt/android/operations/change-lock-code","/permission/admin/device-mgt/android/operations/clear-password","/permission/admin/device-mgt/android/operations/device-info","/permission/admin/device-mgt/android/operations/disenroll","/permission/admin/device-mgt/android/operations/encrypt","/permission/admin/device-mgt/android/operations/enterprise-wipe","/permission/admin/device-mgt/android/operations/install-application","/permission/admin/device-mgt/android/operations/location","/permission/admin/device-mgt/android/operations/lock","/permission/admin/device-mgt/android/operations/mute","/permission/admin/device-mgt/android/operations/notification","/permission/admin/device-mgt/android/operations/password-policy","/permission/admin/device-mgt/android/operations/poll","/permission/admin/device-mgt/android/operations/reboot-device","/permission/admin/device-mgt/android/operations/ring-device","/permission/admin/device-mgt/android/operations/uninstall-application","/permission/admin/device-mgt/android/operations/upgrade-firmware","/permission/admin/device-mgt/android/operations/webclip","/permission/admin/device-mgt/android/operations/wifi","/permission/admin/device-mgt/android/operations/wipe-data","/permission/admin/device-mgt/android/policies","/permission/admin/device-mgt/android/policies/view","/permission/admin/device-mgt/android/tenant","/permission/admin/device-mgt/android/tenant/configuration","/permission/admin/device-mgt/android/tenant/configuration/modify","/permission/admin/device-mgt/android/tenant/configuration/view","/permission/admin/device-mgt/devices","/permission/admin/device-mgt/devices/count","/permission/admin/device-mgt/devices/list","/permission/admin/device-mgt/devices/types","/permission/admin/device-mgt/devices/view","/permission/admin/device-mgt/emm-admin","/permission/admin/device-mgt/emm-admin/dashboard","/permission/admin/device-mgt/emm-admin/dashboard/view","/permission/admin/device-mgt/emm-admin/devices","/permission/admin/device-mgt/emm-admin/devices/list","/permission/admin/device-mgt/emm-admin/devices/operation","/permission/admin/device-mgt/emm-admin/platform-configs","/permission/admin/device-mgt/emm-admin/platform-configs/view","/permission/admin/device-mgt/emm-admin/policies","/permission/admin/device-mgt/emm-admin/policies/add","/permission/admin/device-mgt/emm-admin/policies/edit","/permission/admin/device-mgt/emm-admin/policies/list","/permission/admin/device-mgt/emm-admin/policies/priority","/permission/admin/device-mgt/emm-admin/policies/remove","/permission/admin/device-mgt/emm-admin/roles","/permission/admin/device-mgt/emm-admin/roles/add","/permission/admin/device-mgt/emm-admin/roles/invite","/permission/admin/device-mgt/emm-admin/roles/list","/permission/admin/device-mgt/emm-admin/roles/permission","/permission/admin/device-mgt/emm-admin/roles/remove","/permission/admin/device-mgt/emm-admin/users","/permission/admin/device-mgt/emm-admin/users/add","/permission/admin/device-mgt/emm-admin/users/invite","/permission/admin/device-mgt/emm-admin/users/list","/permission/admin/device-mgt/emm-admin/users/remove","/permission/admin/device-mgt/features","/permission/admin/device-mgt/features/view","/permission/admin/device-mgt/notifications","/permission/admin/device-mgt/notifications/add","/permission/admin/device-mgt/notifications/view","/permission/admin/device-mgt/operations","/permission/admin/device-mgt/operations/add","/permission/admin/device-mgt/operations/application","/permission/admin/device-mgt/operations/application/install","/permission/admin/device-mgt/operations/application/uninstall","/permission/admin/device-mgt/operations/application/view","/permission/admin/device-mgt/operations/view","/permission/admin/device-mgt/policies","/permission/admin/device-mgt/policies/add","/permission/admin/device-mgt/policies/bulk-remove","/permission/admin/device-mgt/policies/compliance","/permission/admin/device-mgt/policies/delete","/permission/admin/device-mgt/policies/task","/permission/admin/device-mgt/policies/update","/permission/admin/device-mgt/policies/view","/permission/admin/device-mgt/profiles","/permission/admin/device-mgt/profiles/add","/permission/admin/device-mgt/profiles/delete","/permission/admin/device-mgt/profiles/update","/permission/admin/device-mgt/roles","/permission/admin/device-mgt/roles/add","/permission/admin/device-mgt/roles/delete","/permission/admin/device-mgt/roles/update","/permission/admin/device-mgt/tenant","/permission/admin/device-mgt/tenant/configuration","/permission/admin/device-mgt/tenant/configuration/modify","/permission/admin/device-mgt/tenant/configuration/view","/permission/admin/device-mgt/user","/permission/admin/device-mgt/user/devices","/permission/admin/device-mgt/user/devices/list","/permission/admin/device-mgt/user/devices/operation","/permission/admin/device-mgt/users","/permission/admin/device-mgt/users/add","/permission/admin/device-mgt/users/change-password","/permission/admin/device-mgt/users/delete","/permission/admin/device-mgt/users/devices","/permission/admin/device-mgt/users/invite","/permission/admin/device-mgt/users/reset-password","/permission/admin/device-mgt/users/roles","/permission/admin/device-mgt/users/update","/permission/admin/device-mgt/users/view","/permission/admin/device-mgt/windows","/permission/admin/device-mgt/windows/devices","/permission/admin/device-mgt/windows/devices/getBST","/permission/admin/device-mgt/windows/devices/getPolicy","/permission/admin/device-mgt/windows/devices/requestSecurityToken","/permission/admin/device-mgt/windows/license","/permission/admin/device-mgt/windows/license/view","/permission/admin/device-mgt/windows/operations","/permission/admin/device-mgt/windows/operations/disenroll","/permission/admin/device-mgt/windows/operations/lock","/permission/admin/device-mgt/windows/operations/lock-reset","/permission/admin/device-mgt/windows/operations/reboot-device","/permission/admin/device-mgt/windows/operations/ring-device","/permission/admin/device-mgt/windows/operations/upgrade-firmware","/permission/admin/device-mgt/windows/operations/wipe-data","/permission/admin/device-mgt/windows/policies","/permission/admin/device-mgt/windows/policies/view","/permission/admin/device-mgt/windows/tenant","/permission/admin/device-mgt/windows/tenant/configuration","/permission/admin/device-mgt/windows/tenant/configuration/modify","/permission/admin/device-mgt/windows/tenant/configuration/view","/permission/admin/login"],"users":["jim","kim","Tom"],"permissionList":{"resourcePath":"/permission/","displayName":"All Permissions","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt","displayName":"device-mgt","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/admin-device-access","displayName":"admin-device-access","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android","displayName":"android","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/devices/enroll","displayName":"enroll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/list","displayName":"list","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/update","displayName":"update","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/update-app","displayName":"update-app","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/license","displayName":"license","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/license/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/operations","displayName":"operations","isSelected":true,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/operations/application-list","displayName":"application-list","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/blacklist-applications","displayName":"blacklist-applications","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/camera","displayName":"camera","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/change-lock-code","displayName":"change-lock-code","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/clear-password","displayName":"clear-password","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/device-info","displayName":"device-info","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/disenroll","displayName":"disenroll","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/encrypt","displayName":"encrypt","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/enterprise-wipe","displayName":"enterprise-wipe","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/install-application","displayName":"install-application","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/location","displayName":"location","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/lock","displayName":"lock","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/mute","displayName":"mute","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/notification","displayName":"notification","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/password-policy","displayName":"password-policy","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/poll","displayName":"poll","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/reboot-device","displayName":"reboot-device","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/ring-device","displayName":"ring-device","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/uninstall-application","displayName":"uninstall-application","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/upgrade-firmware","displayName":"upgrade-firmware","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/webclip","displayName":"webclip","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/wifi","displayName":"wifi","isSelected":true,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/wipe-data","displayName":"wipe-data","isSelected":true,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/policies","displayName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]}]},{"resourcePath":"/permission/admin/device-mgt/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/devices/count","displayName":"count","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/list","displayName":"list","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/types","displayName":"types","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin","displayName":"Device Management Admin","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/dashboard","displayName":"Dashboard","isSelected":true,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/dashboard/view","displayName":"View Dashboard","isSelected":true,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices","displayName":"Devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices/list","displayName":"List All Devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices/operation","displayName":"Perform Operation on Any Device","isSelected":true,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/platform-configs","displayName":"Platform Configurations","isSelected":true,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/platform-configs/view","displayName":"View Configurations","isSelected":true,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies","displayName":"Policy","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/add","displayName":"Add Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/edit","displayName":"Edit Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/list","displayName":"List Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/priority","displayName":"Policy Priority","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/remove","displayName":"Remove Policy","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles","displayName":"Roles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/add","displayName":"Add New Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/invite","displayName":"Invite Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/list","displayName":"List Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/permission","displayName":"Update Role Permission","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/remove","displayName":"Remove Roles","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users","displayName":"Users","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/add","displayName":"Add New Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/invite","displayName":"Invite Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/list","displayName":"List Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/remove","displayName":"Remove Users","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/features","displayName":"features","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/features/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/notifications","displayName":"notifications","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/notifications/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/notifications/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/operations","displayName":"operations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/operations/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application","displayName":"application","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/operations/application/install","displayName":"install","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application/uninstall","displayName":"uninstall","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/operations/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/policies","displayName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/policies/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/bulk-remove","displayName":"bulk-remove","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/compliance","displayName":"compliance","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/task","displayName":"task","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/update","displayName":"update","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/profiles","displayName":"profiles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/profiles/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/profiles/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/profiles/update","displayName":"update","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/roles","displayName":"roles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/roles/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/roles/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/roles/update","displayName":"update","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/user","displayName":"Device Management User","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/user/devices","displayName":"Devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/user/devices/list","displayName":"List Individual Devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/user/devices/operation","displayName":"Perform Operation on an Individual Device","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/users","displayName":"users","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/users/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/change-password","displayName":"change-password","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/devices","displayName":"devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/invite","displayName":"invite","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/reset-password","displayName":"reset-password","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/roles","displayName":"roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/update","displayName":"update","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows","displayName":"windows","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/devices/getBST","displayName":"getBST","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/devices/getPolicy","displayName":"getPolicy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/devices/requestSecurityToken","displayName":"requestSecurityToken","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/license","displayName":"license","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/license/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/operations","displayName":"operations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/operations/disenroll","displayName":"disenroll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/lock","displayName":"lock","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/lock-reset","displayName":"lock-reset","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/reboot-device","displayName":"reboot-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/ring-device","displayName":"ring-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/upgrade-firmware","displayName":"upgrade-firmware","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/wipe-data","displayName":"wipe-data","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/policies","dis* Connection #0 to host localhost left intact playName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]}]}]},{"resourcePath":"/permission/admin/login","displayName":"Login","isSelected":false,"nodeList”:[]}]}}}å | ||||||||||||||||
Sample JSON Output Definition | { "roleName": "engineer", "permissions": [ "/permission/admin/device-mgt", "/permission/admin/device-mgt/admin-device-access", "/permission/admin/device-mgt/android", "/permission/admin/device-mgt/android/devices", "/permission/admin/device-mgt/android/devices/enroll", "/permission/admin/device-mgt/android/devices/list", "/permission/admin/device-mgt/android/devices/update", "/permission/admin/device-mgt/android/devices/update-app", "/permission/admin/device-mgt/android/devices/view", "/permission/admin/device-mgt/android/license", "/permission/admin/device-mgt/android/license/view", "/permission/admin/device-mgt/android/operations", "/permission/admin/device-mgt/android/operations/application-list", "/permission/admin/device-mgt/android/operations/blacklist-applications", "/permission/admin/device-mgt/android/operations/camera", "/permission/admin/device-mgt/android/operations/change-lock-code", "/permission/admin/device-mgt/android/operations/clear-password", "/permission/admin/device-mgt/android/operations/device-info", "/permission/admin/device-mgt/android/operations/disenroll", "/permission/admin/device-mgt/android/operations/encrypt", "/permission/admin/device-mgt/android/operations/enterprise-wipe", "/permission/admin/device-mgt/android/operations/install-application", "/permission/admin/device-mgt/android/operations/location", "/permission/admin/device-mgt/android/operations/lock", "/permission/admin/device-mgt/android/operations/mute", "/permission/admin/device-mgt/android/operations/notification", "/permission/admin/device-mgt/android/operations/password-policy", "/permission/admin/device-mgt/android/operations/poll", "/permission/admin/device-mgt/android/operations/reboot-device", "/permission/admin/device-mgt/android/operations/ring-device", "/permission/admin/device-mgt/android/operations/uninstall-application", "/permission/admin/device-mgt/android/operations/upgrade-firmware", "/permission/admin/device-mgt/android/operations/webclip", "/permission/admin/device-mgt/android/operations/wifi", "/permission/admin/device-mgt/android/operations/wipe-data", "/permission/admin/device-mgt/android/policies", "/permission/admin/device-mgt/android/policies/view", "/permission/admin/device-mgt/android/tenant", "/permission/admin/device-mgt/android/tenant/configuration", "/permission/admin/device-mgt/android/tenant/configuration/modify", "/permission/admin/device-mgt/android/tenant/configuration/view", "/permission/admin/device-mgt/devices", "/permission/admin/device-mgt/devices/count", "/permission/admin/device-mgt/devices/list", "/permission/admin/device-mgt/devices/types", "/permission/admin/device-mgt/devices/view", "/permission/admin/device-mgt/emm-admin", "/permission/admin/device-mgt/emm-admin/dashboard", "/permission/admin/device-mgt/emm-admin/dashboard/view", "/permission/admin/device-mgt/emm-admin/devices", "/permission/admin/device-mgt/emm-admin/devices/list", "/permission/admin/device-mgt/emm-admin/devices/operation", "/permission/admin/device-mgt/emm-admin/platform-configs", "/permission/admin/device-mgt/emm-admin/platform-configs/view", "/permission/admin/device-mgt/emm-admin/policies", "/permission/admin/device-mgt/emm-admin/policies/add", "/permission/admin/device-mgt/emm-admin/policies/edit", "/permission/admin/device-mgt/emm-admin/policies/list", "/permission/admin/device-mgt/emm-admin/policies/priority", "/permission/admin/device-mgt/emm-admin/policies/remove", "/permission/admin/device-mgt/emm-admin/roles", "/permission/admin/device-mgt/emm-admin/roles/add", "/permission/admin/device-mgt/emm-admin/roles/invite", "/permission/admin/device-mgt/emm-admin/roles/list", "/permission/admin/device-mgt/emm-admin/roles/permission", "/permission/admin/device-mgt/emm-admin/roles/remove", "/permission/admin/device-mgt/emm-admin/users", "/permission/admin/device-mgt/emm-admin/users/add", "/permission/admin/device-mgt/emm-admin/users/invite", "/permission/admin/device-mgt/emm-admin/users/list", "/permission/admin/device-mgt/emm-admin/users/remove", "/permission/admin/device-mgt/features", "/permission/admin/device-mgt/features/view", "/permission/admin/device-mgt/notifications", "/permission/admin/device-mgt/notifications/add", "/permission/admin/device-mgt/notifications/view", "/permission/admin/device-mgt/operations", "/permission/admin/device-mgt/operations/add", "/permission/admin/device-mgt/operations/application", "/permission/admin/device-mgt/operations/application/install", "/permission/admin/device-mgt/operations/application/uninstall", "/permission/admin/device-mgt/operations/application/view", "/permission/admin/device-mgt/operations/view", "/permission/admin/device-mgt/policies", "/permission/admin/device-mgt/policies/add", "/permission/admin/device-mgt/policies/bulk-remove", "/permission/admin/device-mgt/policies/compliance", "/permission/admin/device-mgt/policies/delete", "/permission/admin/device-mgt/policies/task", "/permission/admin/device-mgt/policies/update", "/permission/admin/device-mgt/policies/view", "/permission/admin/device-mgt/profiles", "/permission/admin/device-mgt/profiles/add", "/permission/admin/device-mgt/profiles/delete", "/permission/admin/device-mgt/profiles/update", "/permission/admin/device-mgt/roles", "/permission/admin/device-mgt/roles/add", "/permission/admin/device-mgt/roles/delete", "/permission/admin/device-mgt/roles/update", "/permission/admin/device-mgt/tenant", "/permission/admin/device-mgt/tenant/configuration", "/permission/admin/device-mgt/tenant/configuration/modify", "/permission/admin/device-mgt/tenant/configuration/view", "/permission/admin/device-mgt/user", "/permission/admin/device-mgt/user/devices", "/permission/admin/device-mgt/user/devices/list", "/permission/admin/device-mgt/user/devices/operation", "/permission/admin/device-mgt/users", "/permission/admin/device-mgt/users/add", "/permission/admin/device-mgt/users/change-password", "/permission/admin/device-mgt/users/delete", "/permission/admin/device-mgt/users/devices", "/permission/admin/device-mgt/users/invite", "/permission/admin/device-mgt/users/reset-password", "/permission/admin/device-mgt/users/roles", "/permission/admin/device-mgt/users/update", "/permission/admin/device-mgt/users/view", "/permission/admin/device-mgt/windows", "/permission/admin/device-mgt/windows/devices", "/permission/admin/device-mgt/windows/devices/getBST", "/permission/admin/device-mgt/windows/devices/getPolicy", "/permission/admin/device-mgt/windows/devices/requestSecurityToken", "/permission/admin/device-mgt/windows/license", "/permission/admin/device-mgt/windows/license/view", "/permission/admin/device-mgt/windows/operations", "/permission/admin/device-mgt/windows/operations/disenroll", "/permission/admin/device-mgt/windows/operations/lock", "/permission/admin/device-mgt/windows/operations/lock-reset", "/permission/admin/device-mgt/windows/operations/reboot-device", "/permission/admin/device-mgt/windows/operations/ring-device", "/permission/admin/device-mgt/windows/operations/upgrade-firmware", "/permission/admin/device-mgt/windows/operations/wipe-data", "/permission/admin/device-mgt/windows/policies", "/permission/admin/device-mgt/windows/policies/view", "/permission/admin/device-mgt/windows/tenant", "/permission/admin/device-mgt/windows/tenant/configuration", "/permission/admin/device-mgt/windows/tenant/configuration/modify", "/permission/admin/device-mgt/windows/tenant/configuration/view", "/permission/admin/login" ], "users": [ "jim", "kim", "Tom" ], "permissionList": { "resourcePath": "/permission/", "displayName": "All Permissions", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt", "displayName": "device-mgt", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/admin-device-access", "displayName": "admin-device-access", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android", "displayName": "android", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/devices/enroll", "displayName": "enroll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/list", "displayName": "list", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/update", "displayName": "update", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/update-app", "displayName": "update-app", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/license", "displayName": "license", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/license/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations", "displayName": "operations", "isSelected": true, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/operations/application-list", "displayName": "application-list", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/blacklist-applications", "displayName": "blacklist-applications", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/camera", "displayName": "camera", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/change-lock-code", "displayName": "change-lock-code", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/clear-password", "displayName": "clear-password", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/device-info", "displayName": "device-info", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/disenroll", "displayName": "disenroll", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/encrypt", "displayName": "encrypt", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/enterprise-wipe", "displayName": "enterprise-wipe", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/install-application", "displayName": "install-application", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/location", "displayName": "location", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/lock", "displayName": "lock", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/mute", "displayName": "mute", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/notification", "displayName": "notification", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/password-policy", "displayName": "password-policy", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/poll", "displayName": "poll", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/reboot-device", "displayName": "reboot-device", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/ring-device", "displayName": "ring-device", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/uninstall-application", "displayName": "uninstall-application", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/upgrade-firmware", "displayName": "upgrade-firmware", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/webclip", "displayName": "webclip", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/wifi", "displayName": "wifi", "isSelected": true, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/wipe-data", "displayName": "wipe-data", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/policies", "displayName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/policies/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/devices/count", "displayName": "count", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/list", "displayName": "list", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/types", "displayName": "types", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin", "displayName": "Device Management Admin", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/dashboard", "displayName": "Dashboard", "isSelected": true, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/dashboard/view", "displayName": "View Dashboard", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices", "displayName": "Devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices/list", "displayName": "List All Devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices/operation", "displayName": "Perform Operation on Any Device", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/platform-configs", "displayName": "Platform Configurations", "isSelected": true, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/platform-configs/view", "displayName": "View Configurations", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies", "displayName": "Policy", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/add", "displayName": "Add Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/edit", "displayName": "Edit Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/list", "displayName": "List Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/priority", "displayName": "Policy Priority", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/remove", "displayName": "Remove Policy", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles", "displayName": "Roles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/add", "displayName": "Add New Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/invite", "displayName": "Invite Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/list", "displayName": "List Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/permission", "displayName": "Update Role Permission", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/remove", "displayName": "Remove Roles", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users", "displayName": "Users", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/add", "displayName": "Add New Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/invite", "displayName": "Invite Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/list", "displayName": "List Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/remove", "displayName": "Remove Users", "isSelected": false, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/features", "displayName": "features", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/features/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/notifications", "displayName": "notifications", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/notifications/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/notifications/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/operations", "displayName": "operations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/operations/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application", "displayName": "application", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/operations/application/install", "displayName": "install", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application/uninstall", "displayName": "uninstall", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/operations/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/policies", "displayName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/policies/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/bulk-remove", "displayName": "bulk-remove", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/compliance", "displayName": "compliance", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/task", "displayName": "task", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/update", "displayName": "update", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/profiles", "displayName": "profiles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/profiles/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/profiles/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/profiles/update", "displayName": "update", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/roles", "displayName": "roles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/roles/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/roles/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/roles/update", "displayName": "update", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/tenant/configuration/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/user", "displayName": "Device Management User", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/user/devices", "displayName": "Devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/user/devices/list", "displayName": "List Individual Devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/user/devices/operation", "displayName": "Perform Operation on an Individual Device", "isSelected": false, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/users", "displayName": "users", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/users/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/change-password", "displayName": "change-password", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/devices", "displayName": "devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/invite", "displayName": "invite", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/reset-password", "displayName": "reset-password", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/roles", "displayName": "roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/update", "displayName": "update", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows", "displayName": "windows", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/devices/getBST", "displayName": "getBST", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/devices/getPolicy", "displayName": "getPolicy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/devices/requestSecurityToken", "displayName": "requestSecurityToken", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/license", "displayName": "license", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/license/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations", "displayName": "operations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/operations/disenroll", "displayName": "disenroll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/lock", "displayName": "lock", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/lock-reset", "displayName": "lock-reset", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/reboot-device", "displayName": "reboot-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/ring-device", "displayName": "ring-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/upgrade-firmware", "displayName": "upgrade-firmware", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/wipe-data", "displayName": "wipe-data", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/policies", "dis* Connection #0 to host localhost left intact playName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/policies/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] } ] } ] } ] }, { "resourcePath": "/permission/admin/login", "displayName": "Login", "isSelected": false, "nodeList": [ ] } ] } }
|
Getting the list of roles in a UserStore
Description | If you wish to get the details of the roles that were stored in a specific UserStore, you can do so using the REST API given below. | ||||
---|---|---|---|---|---|
Resource Path | / | ||||
URL | /mdm-admin/roles/{userstore} | ||||
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/roles/{userstore}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/primary | ||||
Sample output | > GET /mdm-admin/roles/primary HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer a99d5fff08eefff282b413d86cac7d00 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 11:45:26 GMT < Content-Type: application/json < Content-Length: 131 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"All user roles were successfully retrieved.","responseContent":["admin","marketing"]} | ||||
Sample JSON Output Definition | [ "admin", "marketing" ]
|
Getting permission details of a role
Description | In an organization an individual is associated a with set of responsibilities based on their role. In WSO2 EMM you are able to configure permissions based on the responsibilities carried out by a role. Therefore if you wish to retrieve the permission details of a role, you can do so using the REST API given below. |
---|---|
Resource Path | /permissions |
URL | /mdm-admin/roles/permissions?rolename={rolename} |
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/roles/permissions?rolename={rolename}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/permissions?rolename=marketing |
Sample output | > GET /mdm-admin/roles/permissions?rolename=marketing HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 0f963270d06e0859dc8fabeb2b4fa7d1 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 12:40:18 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Server: WSO2 Carbon Server < {"statusCode":200,"messageFromServer":"All permissions retrieved","responseContent":{"resourcePath":"/permission/","displayName":"All Permissions","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt","displayName":"device-mgt","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/admin-device-access","displayName":"admin-device-access","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android","displayName":"android","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/devices/enroll","displayName":"enroll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/list","displayName":"list","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/update","displayName":"update","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/update-app","displayName":"update-app","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/devices/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/license","displayName":"license","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/license/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/operations","displayName":"operations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/operations/application-list","displayName":"application-list","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/blacklist-applications","displayName":"blacklist-applications","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/camera","displayName":"camera","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/change-lock-code","displayName":"change-lock-code","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/clear-password","displayName":"clear-password","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/device-info","displayName":"device-info","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/disenroll","displayName":"disenroll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/encrypt","displayName":"encrypt","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/enterprise-wipe","displayName":"enterprise-wipe","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/install-application","displayName":"install-application","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/location","displayName":"location","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/lock","displayName":"lock","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/mute","displayName":"mute","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/notification","displayName":"notification","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/password-policy","displayName":"password-policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/poll","displayName":"poll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/reboot-device","displayName":"reboot-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/ring-device","displayName":"ring-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/uninstall-application","displayName":"uninstall-application","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/upgrade-firmware","displayName":"upgrade-firmware","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/webclip","displayName":"webclip","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/wifi","displayName":"wifi","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/operations/wipe-data","displayName":"wipe-data","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/policies","displayName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/android/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/android/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]}]},{"resourcePath":"/permission/admin/device-mgt/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/devices/count","displayName":"count","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/list","displayName":"list","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/types","displayName":"types","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/devices/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin","displayName":"Device Management Admin","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/dashboard","displayName":"Dashboard","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/dashboard/view","displayName":"View Dashboard","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices","displayName":"Devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices/list","displayName":"List All Devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/devices/operation","displayName":"Perform Operation on Any Device","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/platform-configs","displayName":"Platform Configurations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/platform-configs/view","displayName":"View Configurations","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies","displayName":"Policy","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/add","displayName":"Add Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/edit","displayName":"Edit Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/list","displayName":"List Policy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/priority","displayName":"Policy Priority","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/policies/remove","displayName":"Remove Policy","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles","displayName":"Roles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/add","displayName":"Add New Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/invite","displayName":"Invite Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/list","displayName":"List Roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/permission","displayName":"Update Role Permission","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/roles/remove","displayName":"Remove Roles","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users","displayName":"Users","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/add","displayName":"Add New Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/invite","displayName":"Invite Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/list","displayName":"List Users","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/emm-admin/users/remove","displayName":"Remove Users","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/features","displayName":"features","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/features/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/notifications","displayName":"notifications","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/notifications/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/notifications/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/operations","displayName":"operations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/operations/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application","displayName":"application","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/operations/application/install","displayName":"install","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application/uninstall","displayName":"uninstall","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/operations/application/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/operations/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/policies","displayName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/policies/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/bulk-remove","displayName":"bulk-remove","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/compliance","displayName":"compliance","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/task","displayName":"task","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/update","displayName":"update","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/profiles","displayName":"profiles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/profiles/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/profiles/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/profiles/update","displayName":"update","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/roles","displayName":"roles","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/roles/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/roles/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/roles/update","displayName":"update","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/user","displayName":"Device Management User","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/user/devices","displayName":"Devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/user/devices/list","displayName":"List Individual Devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/user/devices/operation","displayName":"Perform Operation on an Individual Device","isSelected":false,"nodeList":[]}]}]},{"resourcePath":"/permission/admin/device-mgt/users","displayName":"users","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/users/add","displayName":"add","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/change-password","displayName":"change-password","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/delete","displayName":"delete","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/devices","displayName":"devices","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/invite","displayName":"invite","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/reset-password","displayName":"reset-password","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/roles","displayName":"roles","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/update","displayName":"update","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/users/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows","displayName":"windows","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/devices","displayName":"devices","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/devices/getBST","displayName":"getBST","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/devices/getPolicy","displayName":"getPolicy","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/devices/requestSecurityToken","displayName":"requestSecurityToken","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/license","displayName":"license","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/license/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/operations","displayName":"operations","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/operations/disenroll","displayName":"disenroll","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/oper* Connection #0 to host localhost left intact ations/lock","displayName":"lock","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/lock-reset","displayName":"lock-reset","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/reboot-device","displayName":"reboot-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/ring-device","displayName":"ring-device","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/upgrade-firmware","displayName":"upgrade-firmware","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/operations/wipe-data","displayName":"wipe-data","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/policies","displayName":"policies","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/policies/view","displayName":"view","isSelected":false,"nodeList":[]}]},{"resourcePath":"/permission/admin/device-mgt/windows/tenant","displayName":"tenant","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration","displayName":"configuration","isSelected":false,"nodeList":[{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration/modify","displayName":"modify","isSelected":false,"nodeList":[]},{"resourcePath":"/permission/admin/device-mgt/windows/tenant/configuration/view","displayName":"view","isSelected":false,"nodeList":[]}]}]}]}]},{"resourcePath":"/permission/admin/login","displayName":"Login","isSelected":false,"nodeList":[]}]}} |
Sample JSON Output Definition | { "statusCode": 200, "messageFromServer": "All permissions retrieved", "responseContent": { "resourcePath": "/permission/", "displayName": "All Permissions", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt", "displayName": "device-mgt", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/admin-device-access", "displayName": "admin-device-access", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android", "displayName": "android", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/devices/enroll", "displayName": "enroll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/list", "displayName": "list", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/update", "displayName": "update", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/update-app", "displayName": "update-app", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/devices/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/license", "displayName": "license", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/license/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations", "displayName": "operations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/operations/application-list", "displayName": "application-list", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/blacklist-applications", "displayName": "blacklist-applications", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/camera", "displayName": "camera", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/change-lock-code", "displayName": "change-lock-code", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/clear-password", "displayName": "clear-password", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/device-info", "displayName": "device-info", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/disenroll", "displayName": "disenroll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/encrypt", "displayName": "encrypt", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/enterprise-wipe", "displayName": "enterprise-wipe", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/install-application", "displayName": "install-application", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/location", "displayName": "location", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/lock", "displayName": "lock", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/mute", "displayName": "mute", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/notification", "displayName": "notification", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/password-policy", "displayName": "password-policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/poll", "displayName": "poll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/reboot-device", "displayName": "reboot-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/ring-device", "displayName": "ring-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/uninstall-application", "displayName": "uninstall-application", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/upgrade-firmware", "displayName": "upgrade-firmware", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/webclip", "displayName": "webclip", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/wifi", "displayName": "wifi", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/operations/wipe-data", "displayName": "wipe-data", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/policies", "displayName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/policies/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/android/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/android/tenant/configuration/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/devices/count", "displayName": "count", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/list", "displayName": "list", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/types", "displayName": "types", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/devices/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin", "displayName": "Device Management Admin", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/dashboard", "displayName": "Dashboard", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/dashboard/view", "displayName": "View Dashboard", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices", "displayName": "Devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices/list", "displayName": "List All Devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/devices/operation", "displayName": "Perform Operation on Any Device", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/platform-configs", "displayName": "Platform Configurations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/platform-configs/view", "displayName": "View Configurations", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies", "displayName": "Policy", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/add", "displayName": "Add Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/edit", "displayName": "Edit Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/list", "displayName": "List Policy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/priority", "displayName": "Policy Priority", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/policies/remove", "displayName": "Remove Policy", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles", "displayName": "Roles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/add", "displayName": "Add New Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/invite", "displayName": "Invite Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/list", "displayName": "List Roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/permission", "displayName": "Update Role Permission", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/roles/remove", "displayName": "Remove Roles", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users", "displayName": "Users", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/add", "displayName": "Add New Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/invite", "displayName": "Invite Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/list", "displayName": "List Users", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/emm-admin/users/remove", "displayName": "Remove Users", "isSelected": false, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/features", "displayName": "features", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/features/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/notifications", "displayName": "notifications", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/notifications/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/notifications/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/operations", "displayName": "operations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/operations/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application", "displayName": "application", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/operations/application/install", "displayName": "install", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application/uninstall", "displayName": "uninstall", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/operations/application/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/operations/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/policies", "displayName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/policies/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/bulk-remove", "displayName": "bulk-remove", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/compliance", "displayName": "compliance", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/task", "displayName": "task", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/update", "displayName": "update", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/policies/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/profiles", "displayName": "profiles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/profiles/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/profiles/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/profiles/update", "displayName": "update", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/roles", "displayName": "roles", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/roles/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/roles/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/roles/update", "displayName": "update", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/tenant/configuration/view", "displayName": "view", "isSelected": true, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/user", "displayName": "Device Management User", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/user/devices", "displayName": "Devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/user/devices/list", "displayName": "List Individual Devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/user/devices/operation", "displayName": "Perform Operation on an Individual Device", "isSelected": false, "nodeList": [ ] } ] } ] }, { "resourcePath": "/permission/admin/device-mgt/users", "displayName": "users", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/users/add", "displayName": "add", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/change-password", "displayName": "change-password", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/delete", "displayName": "delete", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/devices", "displayName": "devices", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/invite", "displayName": "invite", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/reset-password", "displayName": "reset-password", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/roles", "displayName": "roles", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/update", "displayName": "update", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/users/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows", "displayName": "windows", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/devices", "displayName": "devices", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/devices/getBST", "displayName": "getBST", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/devices/getPolicy", "displayName": "getPolicy", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/devices/requestSecurityToken", "displayName": "requestSecurityToken", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/license", "displayName": "license", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/license/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations", "displayName": "operations", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/operations/disenroll", "displayName": "disenroll", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/l* Connection #0 to host localhost left intact ock", "displayName": "lock", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/lock-reset", "displayName": "lock-reset", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/reboot-device", "displayName": "reboot-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/ring-device", "displayName": "ring-device", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/upgrade-firmware", "displayName": "upgrade-firmware", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/operations/wipe-data", "displayName": "wipe-data", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/policies", "displayName": "policies", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/policies/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] }, { "resourcePath": "/permission/admin/device-mgt/windows/tenant", "displayName": "tenant", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration", "displayName": "configuration", "isSelected": false, "nodeList": [ { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration/modify", "displayName": "modify", "isSelected": false, "nodeList": [ ] }, { "resourcePath": "/permission/admin/device-mgt/windows/tenant/configuration/view", "displayName": "view", "isSelected": false, "nodeList": [ ] } ] } ] } ] } ] }, { "resourcePath": "/permission/admin/login", "displayName": "Login", "isSelected": false, "nodeList": [ ] } ] } } The following section describes the permission associated with the APIs under different areas:
|
Getting the role count
Description | Get the number of roles in WSO2 EMM. |
---|---|
Resource Path | /count |
URL | /mdm-admin/roles/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/roles/count
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/count |
Sample output | > GET /mdm-admin/roles/count 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 07:17:24 GMT < Content-Type: application/json < Content-Length: 1 < Server: WSO2 Carbon Server 10 |
Sample JSON Output Definition | Provides the number of roles 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 10 roles. |
Updating role details
Description | There will be situations where you will need to update the role details, such as the permissions or the role name. In such situation you can update the role details using the REST API given below. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | /mdm-admin/roles?rolename={rolename} | ||||||||||||
HTTP Method | PUT | ||||||||||||
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/roles?rolename={rolename}
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'role.json' -k -v https://localhost:9443/mdm-admin/roles?rolename=engineer | ||||||||||||
Sample output | > PUT /mdm-admin/roles?rolename=engineer HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 103 < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 13:34:18 GMT < Content-Length: 0 < Server: WSO2 Carbon Server | ||||||||||||
Sample JSON Definition | { "roleName": "engineer", "permissions": [ "device-mgt/policies/view" ], "users": [ "tom" ] }
|
Searching for roles via the role name
Description | You will have many roles created within WSO2 EMM. As the admin you will need to confirm if a given role exists in the EMM. In such situation you can search for the role by giving a character or a few characters of the role name. The search will give you a list of roles that have the name in the exact order of the characters you provided. | ||||
---|---|---|---|---|---|
Resource Path | /search | ||||
URL | /mdm-admin/roles/search?filters={filters} | ||||
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/roles/search?filters={filters}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles/search?filters=a | ||||
Sample output | > GET /mdm-admin/roles/search?filter=a HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer a99d5fff08eefff282b413d86cac7d00 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 12:18:08 GMT < Content-Type: application/json < Content-Length: 133 < Server: WSO2 Carbon Server {"statusCode":200,"messageFromServer":"All matching user roles were successfully retrieved.","responseContent":["admin","marketing"]} | ||||
Sample JSON Output Definition | [ "admin", "marketing" ]
|
Deleting a role
Description | In a situation when your Organization identifies that a specific role is no longer required you will need to remove the role details from WSO2 EMM. In such situations you can use the the REST API given below to remove a role. |
---|---|
URL | /mdm-admin/roles?rolename={rolename} |
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/roles?rolename={rolename}
Example: curl -X DELETE -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/roles?rolename=engineer |
Sample output | > DELETE /mdm-admin/roles?rolename=engineer HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 13dd6b016e72a41e5905e0c28a791da1 > < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Sun, 06 Mar 2016 13:41:14 GMT < Content-Length: 0 < Server: WSO2 Carbon Server |