Skip to content

magento 2.4 get list of all admin roles

is there a way to retrieve the full list of admin roles? Not the users, just the roles. I’m looking but all I can find is the list of users. I tried with the MagentoAuthorizationModelResourceModelRoleCollection but it doesn’t work.