FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
91 stars 12 forks source link

Export Users and Roles in Open Policy Agent format #1139

Open VinayaSathyanarayana opened 3 years ago

VinayaSathyanarayana commented 3 years ago

For Security/Regulatory Compliance, one needs to check the users and the roles assigned to them. The checks have to be done based on the policies set.

We need the ability to export all

the output format has to conform to Open Policy Agent formats

Note: Please have this feature in the community edition and not in the Paid Plans.

Please give a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

mooreds commented 3 years ago

A possible workaround:

Pull the users and roles using the API and transform the JSON into an acceptable format. I didn't see a great reference for the data JSON format (the rego rules format seems well documented).

https://www.openpolicyagent.org/docs/v0.12.2/how-does-opa-work/#the-data-document is the best I could find. If someone has a better reference, please drop the link here.