diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/RoleManagementServiceImpl.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/RoleManagementServiceImpl.java index bca483f6c09..19009bf4364 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/RoleManagementServiceImpl.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/service/impl/RoleManagementServiceImpl.java @@ -340,7 +340,8 @@ public class RoleManagementServiceImpl implements RoleManagementService { for (UIPermissionNode node : permissionNode.getNodeList()) { if (Constants.Permission.LOGIN.equals(node.getResourcePath()) || Constants.Permission.DEVICE_MGT.equals(node.getResourcePath()) || - Constants.Permission.APP_MGT.equals(node.getResourcePath())) { + Constants.Permission.APP_MGT.equals(node.getResourcePath()) || + Constants.Permission.TENANT.equals(node.getResourcePath())) { deviceMgtPermissionsList.add(node); } } diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/util/Constants.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/util/Constants.java index 0a9b6efa268..75ba2cc3225 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/util/Constants.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.api/src/main/java/io/entgra/device/mgt/core/device/mgt/api/jaxrs/util/Constants.java @@ -84,6 +84,7 @@ public class Constants { public static final String LOGIN = "/permission/admin/login"; public static final String DEVICE_MGT = "/permission/admin/device-mgt"; public static final String APP_MGT = "/permission/admin/app-mgt"; + public static final String TENANT = "/permission/admin/tenants"; } }