I hope this is not a duplicate, but I couldn't find any answer so far.
My goal is to show parts of an HTML5 application in SAP Cloud Platform (Neo) only to authorized users. Ideally, I would like to retrieve the roles / groups of a user during execution time and based on that hide / disable certain buttons.
So far, I found out that I can exclude subpages  which is not what I would like to do. Also there is the authorization management API , but that's meant for administration and not for productive use. It would also require to store passwords in the code which is obviously not the right way to go.
Is there any other way to retrieve the role / group information of a user during runtime? I am thinking of something like "isUserInRole("Developer")" which exists for java  or the user API for HTML5 .
Thank you very much for your response!
After a while (and after submitting this question ), I realized that one can (rather easily) solve this problem by using the concept from  (see question) and use "securityConstraints" to block access to one of the files in ones repository. By using an HTTP request on that file, one can than check whether the user has the permission to see it. This definitely does not feel like the right way, but at least it's a rather simple way to solve this problem.