openfga / roadmap

OpenFGA Public Roadmap
2 stars 0 forks source link

List Actions/Permissions #62

Open zachkirlew opened 1 month ago

zachkirlew commented 1 month ago

We are currently considering migrating to openfga but we were disappointed to see there's no openfga endpoint we can use to get all the allowed actions for a given user for a given resource. This is particularly useful information for the UI to conditionally render items. I've already looked into using the Read API to query relationships for a user and resource but it doesn't take into consideration the authorisation model.

The following systems provide this behaviour already:

rhamzeh commented 1 month ago

Hi @zachkirlew , you can use the ListRelations method in any of our supported SDKs.

Try it out and let us know your feedback

zachkirlew commented 1 month ago

@rhamzeh couldn't find this mentioned in the docs. Will give it a go! Thanks!