From a7387fda315e1e76bbdb0b7aae8d27f6def88763 Mon Sep 17 00:00:00 2001 From: Rajitha Kumara Date: Thu, 19 Oct 2023 23:36:57 +0530 Subject: [PATCH] Add missed role key --- .../core/apimgt/webapp/publisher/APIPublisherServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherServiceImpl.java b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherServiceImpl.java index 086c1666b9f..f163859572c 100644 --- a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherServiceImpl.java +++ b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherServiceImpl.java @@ -461,6 +461,7 @@ public class APIPublisherServiceImpl implements APIPublisherService { List bindings = new ArrayList<>( Arrays.asList(scopeMapping.getDefaultRoles().split(","))); + bindings.add(ADMIN_ROLE_KEY); scope.setName(scopeMapping.getKey()); scope.setDescription(scopeMapping.getName()); scope.setDisplayName(scopeMapping.getName());