canonical / identity-platform-admin-ui

Admin UI for the Canonical identity broker and identity provider solution
Other
5 stars 4 forks source link

Can't remove roles or identities from a group #294

Closed huwshimi closed 2 months ago

huwshimi commented 2 months ago

When doing a DELETE to /groups/group1/roles/role1 or /groups/group1/identities/identity1 to remove the role or identity from a group I get a 403 response with this error:

{"data":null,"message":"insufficient permissions to execute operation","status":403,"_meta":null}

I'm on latest main (commit: 0cc2bcece295d2014a269ab5c78154aeac71b383).

I have reset my tuples to those from the seeding doc and appear to have delete permissions (I'm passing the token johndoe as the auth header):

$ fga query check --store-id=$STORE_ID user:johndoe can_delete identity:global --model-id=$MODEL_ID
{
  "allowed":true,
  "resolution":""
}
$ fga query check --store-id=$STORE_ID user:johndoe can_delete role:global --model-id=$MODEL_ID
{
  "allowed":true,
  "resolution":""
}

I can DELETE entitlements from the group (/groups/group1/entitlements/entitlement1).

syncronize-issues-to-jira[bot] commented 2 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-863.

This message was autogenerated

huwshimi commented 2 months ago

It looks like these were two somewhat related issues, but not bugs: