casbin / node-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser
https://casbin.org
Apache License 2.0
2.52k stars 211 forks source link

Feature Request: Method to Retrieve All Domains for a User or a role #479

Open TessilimiTheo opened 4 weeks ago

TessilimiTheo commented 4 weeks ago

I noticed that the Casbin Go library includes a function getDomain. However, I'm looking for a method to retrieve all domains for a user without having to manually iterate over all policies.

Is there an existing method to get all domains for a user more efficiently, or is there a recommended approach to achieve this?

Thank you!

casbin-bot commented 4 weeks ago

@nodece @Shivansh-yadav13