Identify the authenticated user's ROLE in a plugin

System Information
  • Strapi Version: 4.1.12
  • Operating System: Ubuntu
  • Database: postgres
  • Node Version: 14.*

I’m using app.injectContentManagerComponent(‘editView’, ‘informations’,…) to add buttons in a content_type, and I would like to display some buttons conditionally only for Super Admin user, but I can’t get the data from the logged in user.

Any ideias?

Thanks