cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 users Roles

05-30-2021 8:43 PM
1989 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hello Everyone, I just need to know if there is a way or tutorial for how to create roles and authentication for some tabs in the application that make users log on it or not depend on their roles when I am developing application using the sapui5 framework on XSA

and is this can be (

https://help.sap.com/viewer/52715f71adba4aaeb480d946c742d1f6/2.0.05/en-US/4d6ed4dc3db6423abd9f9a52a6...

) applied on XSA ?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Likes

UI5 itself has no concept of roles or displaying UI fragements based on privileges of a user. UI5/Fiori follows the principle of role based apps, meaning that for a specific role specific apps are available. If a user acts in a specific role he can work with all the functionalities provided by the apps for which he is authorized.

Of course you could implement your own service, exposing some "privilege" information an adapt your UI on that information, but that is additional work and is more an "old" school concept which will result in monolithic apps.

Regarding your question if XSA provides something similar than the XSC application privileges. Yes: XSA uses the XSUAA service. With that you can define scopes. For details please check the documentation: Application Security Descriptor Configuration Syntax - SAP Help Portal