Can I create a custom export button in Roles and Users?

[details=“System Information”]

  • Strapi Version: v4.15.0
  • Operating System: Windows
  • Database: sql_lite
  • Node Version: v18.17.1
  • NPM Version: 9.6.7
  • Yarn Version: 1.22.19

Can I create a custom export button to retrieve all the roles data in strapi ?
Note that this can only be done by the super admin user role.

Thanks…

So the first thing that comes to mind is to use the content-type hooks, because the roles are the content-type provided by the plugin @strapi/plugin-user-permissions (can check in your node_modules)

Or alternatively if you find out that you cannot use the injection hooks, then you can extend the base plugin, but that doesn’t sound as a reliable and comfortable solution to implement for this case.