-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
GetOryAccessControlPolicyRoles by member id as well #121
Comments
Yup that makes sense, would you be up for a PR? |
Yes, I will try to get it in! Thanks |
Hey @sum2000 any update on this issue? |
It's already merged |
If I understand correctly using this API we can get all policies by subject?, because there is no mentions in doc about this feature. |
Hey @sum2000 do you know how I can access this feature to get the roles based on member ID. I don't see anything related to this in document. |
Yes, this was resolved! If you have another thing missing or an SDK error please open a new issue for that and fill out the issue template :) |
Is your feature request related to a problem? Please describe.
More and more of our clients are asking for getting roles for a specific member or a group.
Describe the solution you'd like
Have an API
GetOryAccessControlPolicyRoles(flavor, Member ID/GroupID)
to get all the roles associated with a certain memberDescribe alternatives you've considered
Our current workaround involves getting all the roles using
ListOryAccessControlPolicyRoles
and filter through specific subjects/members. This is not a secure way and also a memory intensive operation. Another potential way I thought was to read the rego_data directly which basically means having another keto API to support this.Additional context
I have already started working on this so if you would like I can submit a PR for this. I am pretty much only waiting to see if you already have something in the pipeline or have any strong objection against having this API.
The text was updated successfully, but these errors were encountered: