From a1c410dd8c8cedf99502f3dd629c369100f7e7ba Mon Sep 17 00:00:00 2001 From: hwupathum <46132469+hwupathum@users.noreply.github.com> Date: Thu, 18 Jun 2026 10:50:51 +0530 Subject: [PATCH 1/2] Admin API scopes --- .../resources/system-api-resource.xml | 20 +++++++ .../resources/system-api-resource.xml.j2 | 20 +++++++ .../resources/resource-access-control-v2.xml | 54 ++++++++++++++++--- .../resource-access-control-v2.xml.j2 | 54 ++++++++++++++++--- 4 files changed, 136 insertions(+), 12 deletions(-) diff --git a/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml b/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml index 5a3e7dbfebd8..f23b1438beb9 100644 --- a/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml +++ b/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml @@ -1012,6 +1012,16 @@ description="Delete Consent Purpose"/> + + + + + + @@ -1038,6 +1048,16 @@ description="Delete Consent Purpose in the organization"/> + + + + + + + + + + + + @@ -1034,6 +1044,16 @@ description="Delete Consent Purpose in the organization"/> + + + + + + internal_org_consent_mgt_purpose_update - - - + + internal_login + + + internal_org_consent_mgt_consent_create + + + + + internal_login + + + internal_org_consent_mgt_consent_view + + + + + internal_login + + + internal_org_consent_mgt_consent_view + + + @@ -410,9 +431,30 @@ internal_consent_mgt_purpose_update - - - + + internal_login + + + internal_consent_mgt_consent_create + + + + + internal_login + + + internal_consent_mgt_consent_view + + + + + internal_login + + + internal_consent_mgt_consent_view + + + diff --git a/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 b/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 index 40b48a588a01..87e25bc231be 100644 --- a/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 +++ b/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 @@ -476,9 +476,30 @@ internal_org_consent_mgt_purpose_update - - - + + internal_login + + + internal_org_consent_mgt_consent_create + + + + + internal_login + + + internal_org_consent_mgt_consent_view + + + + + internal_login + + + internal_org_consent_mgt_consent_view + + + @@ -526,9 +547,30 @@ internal_consent_mgt_purpose_update - - - + + internal_login + + + internal_consent_mgt_consent_create + + + + + internal_login + + + internal_consent_mgt_consent_view + + + + + internal_login + + + internal_consent_mgt_consent_view + + + From 85df3705d51a0cb92f17743c9cda9c7232c393ba Mon Sep 17 00:00:00 2001 From: hwupathum <46132469+hwupathum@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:39:02 +0530 Subject: [PATCH 2/2] API resources for update method --- .../resources/system-api-resource.xml | 4 ++++ .../resources/system-api-resource.xml.j2 | 4 ++++ .../resources/resource-access-control-v2.xml | 6 ++++++ .../resources/resource-access-control-v2.xml.j2 | 6 ++++++ 4 files changed, 20 insertions(+) diff --git a/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml b/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml index f23b1438beb9..b900fb2e0a5b 100644 --- a/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml +++ b/features/api-resource-mgt/org.wso2.carbon.identity.api.resource.mgt.server.feature/resources/system-api-resource.xml @@ -1020,6 +1020,8 @@ description="View Consents"/> + + + + + + internal_org_consent_mgt_consent_update + @@ -455,6 +458,9 @@ + + internal_consent_mgt_consent_update + diff --git a/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 b/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 index 87e25bc231be..3bedc5128b2b 100644 --- a/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 +++ b/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/resource-access-control-v2.xml.j2 @@ -500,6 +500,9 @@ + + internal_org_consent_mgt_consent_update + @@ -571,6 +574,9 @@ + + internal_consent_mgt_consent_update +