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
[Question] find all subjects with permissions to access that subject. #1030
Comments
@tangyang9464 @closetool @sagilio |
@JalinWang @imp2002 we need to add the new API /cc @tangyang9464 |
@tangyang9464 we can safely assume the sub is at the 1st index for now. |
@jg-synth Do you just need to return
Do you need to return the entire related policy ( |
#1015 This issue requires dynamic sub's index. |
Thanks all for your input. In response to your questions and comments:
@tangyang9464 Yes, this looks like it would work!
@tangyang9464, I think that I need more than just Here's an example of the sort of view I'm trying to build. To build it, my intention is to fetch I would welcome any further thoughts but I think you've given me enough to consider this resolved - please do feel free to close it. Thanks for taking the time to help. |
I am using the RBAC model provided in your list of examples. I would like to query for a specific object (or list of objects) to find all subjects with permissions to access that subject.
In other words, I am looking for an API similar to getPermissionsForUser except that it would accept an object and return the list of permissions that permit access to that object.
I found another question which is similar but I don't think the solution meets my requirements. That is, I am not looking for implicit permissions for a user and I cannot use the
BatchEnforce
API because I do not know the subject IDs that I am querying for.Your model:
Your policy:
Your request(s):
I am looking for something like:
Thanks for your time,
Jake
The text was updated successfully, but these errors were encountered: