diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml index 325171927..2839966fb 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/webapp/META-INF/permissions.xml @@ -34,7 +34,7 @@ Lock - /device-mgt/android/operations/lock + /device-mgt/emm-admin/operations/android/lock /admin/devices/lock-devices POST emm_admin,emm_user @@ -42,7 +42,7 @@ Unlock - /device-mgt/android/operations/unlock + /device-mgt/emm-admin/operations/android/unlock /admin/devices/unlock-devices POST emm_admin,emm_user @@ -50,7 +50,7 @@ Mute - /device-mgt/android/operations/mute + /device-mgt/emm-admin/operations/android/mute /admin/devices/mute POST emm_admin,emm_user @@ -58,7 +58,7 @@ Location - /device-mgt/android/operations/location + /device-mgt/emm-admin/operations/android/location /admin/devices/location POST emm_admin,emm_user @@ -66,6 +66,7 @@ Clear Passcode + /device-mgt/emm-admin/operations/android/clear-password /admin/devices/clear-password POST emm_admin @@ -73,7 +74,7 @@ Camera - /device-mgt/android/operations/camera + /device-mgt/emm-admin/operations/android/camera /admin/devices/control-camera POST emm_admin,emm_user @@ -81,7 +82,7 @@ Device Info - /device-mgt/android/operations/device-info + /device-mgt/emm-admin/operations/android/device-info /admin/devices/info POST emm_admin,emm_user @@ -89,7 +90,7 @@ Enterprise Wipe - /device-mgt/android/operations/enterprise-wipe + /device-mgt/emm-admin/operations/android/enterprise-wipe /admin/devices/enterprise-wipe POST emm_admin @@ -97,7 +98,7 @@ Wipe Data - /device-mgt/android/operations/wipe-data + /device-mgt/emm-admin/operations/android/wipe-data /admin/devices/wipe POST emm_admin @@ -105,7 +106,7 @@ Application List - /device-mgt/android/operations/application-list + /device-mgt/emm-admin/operations/android/application-list /admin/devices/applications POST emm_admin,emm_user @@ -113,7 +114,7 @@ Ring - /device-mgt/android/operations/ring-device + /device-mgt/emm-admin/operations/android/ring-device /admin/devices/ring POST emm_admin,emm_user @@ -121,7 +122,7 @@ Reboot - /device-mgt/android/operations/reboot-device + /device-mgt/emm-admin/operations/android/reboot-device /admin/devices/reboot POST emm_admin,emm_user @@ -129,7 +130,7 @@ Upgrade Firmware - /device-mgt/android/operations/upgrade-firmware + /device-mgt/emm-admin/operations/android/upgrade-firmware /admin/devices/upgrade-firmware POST emm_admin @@ -137,7 +138,7 @@ Configure VPN - /device-mgt/android/operations/vpn + /device-mgt/emm-admin/operations/android/vpn /admin/devices/configure-vpn POST emm_admin,emm_user @@ -153,7 +154,7 @@ Update Application - /device-mgt/android/operations/update-application + /device-mgt/emm-admin/operations/android/install-application /admin/devices/update-application POST emm_admin,emm_user @@ -161,7 +162,7 @@ Uninstall Application - /device-mgt/android/operations/uninstall-application + /device-mgt/emm-admin/operations/android/uninstall-application /admin/devices/uninstall-application POST emm_admin,emm_user @@ -169,7 +170,7 @@ Blacklist Applications - /device-mgt/android/operations/blacklist-applications + /device-mgt/emm-admin/operations/android/blacklist-applications /admin/devices/blacklist-applications POST emm_admin @@ -177,7 +178,7 @@ Notification - /device-mgt/android/operations/notification + /device-mgt/emm-admin/operations/android/notification /admin/devices/send-notification POST emm_admin,emm_user @@ -185,7 +186,7 @@ Wifi - /device-mgt/android/operations/wifi + /device-mgt/emm-admin/operations/android/wifi /admin/devices/configure-wifi POST emm_admin @@ -193,7 +194,7 @@ Encryption - /device-mgt/android/operations/encrypt + /device-mgt/emm-admin/operations/android/encrypt /admin/devices/encrypt-storage POST emm_admin @@ -201,7 +202,7 @@ Change lock code - /device-mgt/android/operations/change-lock-code + /device-mgt/emm-admin/operations/android/change-lock-code /admin/devices/change-lock-code POST emm_admin @@ -209,7 +210,7 @@ Password Policy - /device-mgt/android/operations/password-policy + /device-mgt/emm-admin/operations/android/password-policy /admin/devices/set-password-policy POST emm_admin @@ -217,7 +218,7 @@ Webclip - /device-mgt/android/operations/webclip + /device-mgt/emm-admin/operations/android/webclip /admin/devices/set-webclip POST emm_admin @@ -225,7 +226,7 @@ Disenroll - /device-mgt/android/operations/disenroll + /device-mgt/emm-admin/operations/android/disenroll /operation/disenroll POST emm_android_agent @@ -234,7 +235,7 @@ View devices - /device-mgt/android/devices/list + /device-mgt/emm-admin/devices/view /device GET emm_admin @@ -242,7 +243,7 @@ View device - /device-mgt/android/devices/view + /device-mgt/emm-admin/devices/view /device/* GET emm_admin,emm_user @@ -250,7 +251,7 @@ Update device - /device-mgt/android/devices/update + /device-mgt/emm-admin/devices/update /device/* PUT emm_admin,emm_user @@ -258,7 +259,7 @@ Update application list - /device-mgt/android/devices/update-app + /device-mgt/emm-admin/operations/android/update-applist /device/appList/* POST emm_admin @@ -266,7 +267,7 @@ View license - /device-mgt/android/license/view + /device-mgt/user/enroll/android /configuration/license GET emm_android_agent @@ -275,7 +276,7 @@ Enroll device - /device-mgt/android/devices/enroll + /device-mgt/user/enroll/android /devices POST emm_android_agent @@ -283,7 +284,7 @@ Devices related Operations - /device-mgt/android/devices + /device-mgt/user/enroll/android /devices/* GET emm_android_agent @@ -291,7 +292,7 @@ Device is enrolled - /device-mgt/android/devices + /device-mgt/user/enroll/android /devices/*/status GET emm_android_agent @@ -299,7 +300,7 @@ Devices related Operations - /device-mgt/android/devices/operations + /device-mgt/user/enroll/android /devices/*/pending-operations PUT emm_android_agent @@ -307,7 +308,7 @@ Modify devices - /device-mgt/android/devices/operations + /device-mgt/user/enroll/android /devices/* PUT emm_android_agent @@ -315,7 +316,7 @@ Delete devices - /device-mgt/android/devices/operations + /device-mgt/user/enroll/android /devices/* DELETE emm_android_agent @@ -340,7 +341,7 @@ View Policies - /device-mgt/android/policies/view + /device-mgt/user/enroll/android /policy/* GET emm_admin @@ -348,7 +349,7 @@ View Policy Features - /device-mgt/android/policies/view + /device-mgt/user/enroll/android /policy/features/* GET emm_admin @@ -357,7 +358,7 @@ View Tenant configuration - /device-mgt/android/tenant/configuration + /device-mgt/emm-admin/platform-configs/view /configuration GET emm_admin @@ -365,7 +366,7 @@ Add Tenant configuration - /device-mgt/android/tenant/configuration + /device-mgt/emm-admin/platform-configs/add /configuration POST emm_admin @@ -373,7 +374,7 @@ Update Tenant configuration - /device-mgt/android/tenant/configuration + /device-mgt/emm-admin/platform-configs/modify /configuration PUT emm_admin