You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there some way to retrieve a list of users who can access a given resource/all users who are allowed to perform a specified action on a given resource?
i.e. input(resource, permission) -> output(users)
Can it be achieved using the query_rule() method??
Also, if it can be done, can it be extended to take in multiple permissions, and return the users who have all these permissions on the specified resource??
Say, with some structure like this- get_users(permissions: List[str], resource: Resource) -> List[User]
An example would look like - get_users(permissions = ["read", "write"], resource = g.session.query(Repo).filter_by(id=any_repo_id).one_or_none())
The text was updated successfully, but these errors were encountered:
Is there some way to retrieve a list of users who can access a given resource/all users who are allowed to perform a specified action on a given resource?
i.e. input(resource, permission) -> output(users)
Can it be achieved using the
query_rule()
method??Also, if it can be done, can it be extended to take in multiple permissions, and return the users who have all these permissions on the specified resource??
Say, with some structure like this-
get_users(permissions: List[str], resource: Resource) -> List[User]
An example would look like -
get_users(permissions = ["read", "write"], resource = g.session.query(Repo).filter_by(id=any_repo_id).one_or_none())
The text was updated successfully, but these errors were encountered: