We are developing an application that uses the configuration api to get the user roles of the logged in user to show or hide the plugin or certain tabs inside the plugin.
The issue is that we don’t want to give the user administrator privileges to be able to get their roles. Is this possible ?
As a result, it is not possible. I tested 2022 R3 Expert (which will be released on 11th of October) but you need to put a user in Administrator group in order to get the user roles. However, if you could use XPCO, then it works fine.
The difference is permission setting.
In XPCO, there is a setting called Read in Management Server (see below).
NOTE - This request is on the wish-list for future enhancement development work. A prioritization needs to be made by Milestone Product Management, so it is not possible to say when, or even if, this will be developed.