Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create and delete scopes to access control for SCIM2 Roles endpoint in org level #6112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,12 @@
<Scopes>
<Scope displayName="View Role" name="internal_org_role_mgt_view"
description="View roles details in the organization"/>
<Scope displayName="Create Role" name="internal_org_role_mgt_create"
description="Create new roles in the organization"/>
<Scope displayName="Update Role" name="internal_org_role_mgt_update"
description="Update roles details in the organization"/>
<Scope displayName="Delete Role" name="internal_org_role_mgt_delete"
description="Delete roles in the organization"/>
</Scopes>
</APIResource>
<APIResource name="SCIM2 Bulk API" identifier="/scim2/Bulk" requiresAuthorization="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@
<Permissions>/permission/admin/manage/identity/rolemgt/view</Permissions>
<Scopes>internal_org_role_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/o/scim2/v2/Roles(.*)" secured="true" http-method="POST">
<Scopes>internal_org_role_mgt_create</Scopes>
</Resource>
<Resource context="(.*)/o/scim2/v2/Roles/(.*)" secured="true" http-method="PUT">
<Permissions>/permission/admin/manage/identity/rolemgt/update</Permissions>
<Scopes>internal_org_role_mgt_update</Scopes>
Expand All @@ -358,6 +361,9 @@
<Permissions>/permission/admin/manage/identity/rolemgt/update</Permissions>
<Scopes>internal_org_role_mgt_update</Scopes>
</Resource>
<Resource context="(.*)/o/scim2/v2/Roles/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_org_role_mgt_delete</Scopes>
</Resource>

<!-- SCIM2 Users API -->
<Resource context="(.*)/scim2/Users/.search" secured="true" http-method="POST">
Expand Down
Loading