From 12266ddc350c4541ea6a12822189d1b4f4c240e0 Mon Sep 17 00:00:00 2001 From: Thamindu Aluthwala Date: Thu, 26 Oct 2023 13:23:35 +0530 Subject: [PATCH] Add console scopes to admin role --- .../mgt/listener/AdminRolePermissionsUpdateListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/listener/AdminRolePermissionsUpdateListener.java b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/listener/AdminRolePermissionsUpdateListener.java index 504caa9ebcb2..6f640c870365 100644 --- a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/listener/AdminRolePermissionsUpdateListener.java +++ b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/listener/AdminRolePermissionsUpdateListener.java @@ -185,6 +185,9 @@ private List getInternalScopes(String tenantDomain) throws IdentityAppli try { List scopes = ApplicationManagementServiceComponentHolder.getInstance() .getAPIResourceManager().getScopesByTenantDomain(tenantDomain, "name sw internal_"); + List consoleScopes = ApplicationManagementServiceComponentHolder.getInstance() + .getAPIResourceManager().getScopesByTenantDomain(tenantDomain, "name sw console:"); + scopes.addAll(consoleScopes); return scopes.stream().map(Scope::getName).collect(Collectors.toCollection(ArrayList::new)); } catch (APIResourceMgtException e) { throw new IdentityApplicationManagementException("Error while retrieving internal scopes for tenant " +