I have done an installation of WSO2 API Manager 2.5.0.
I am customizing the Publisher portal by creating a new subtheme and editing .jag files. Everything is OK until here.
I would like to show elements depending on user role. My first question is: Can I get the rol of the user logged in Publisher portal in jag files?
I couldnt find the way, so I have thought a walkaround: send a request to the RESTful API for WSO2 API Manager - Publisher. The problem is I cannot find (on the documentation) a method that return the roles of a user.
My second question is: There is some method to return the roles of a user?
I know the solution of use Publisher APIS, but they are deprecated, and anyway I have tested it, and it always return true even when the user has not assigned the role.
Ask me more information if you need. Thanks in advance.