cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Overview Page based on role

0 Kudos

Hi experts,

I am new to SAP-programming and I would like to know if there is a way to build an overview page-fiori application which displays content dynamically, based on the role of the user.

For example: When user X is logged in with role X I want to display him different data from backend than user Z who has role Z.

An attempt could be to build an overview page for each role and make them visible to all user with that role. But I would prefer displaying the content dynamically in one overview page.

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_vakil
Active Contributor
0 Kudos

One way for achieving what you have mentioned is control authorizations to the data at the backend system, based on relevant org-level authorizations. Based on what role is assigned in the backend, user will see only the corresponding data in the overview page. For example, we can have different backend roles for displaying data pertaining to different plants, so that users of a specific plant only see data corresponding to their plant.

0 Kudos

Thanks for your suggestion!

So if I understood you correctly, I will read SY-UNAME (which gives me the fiori launchpad username) in my OData-Service, check the roles of the user in table AGR_USERS and build the logic in the OData-service based on the roles I find for the user.

saurabh_vakil
Active Contributor

If, for the criteria based on which you are looking to segregate the data, there are authorization objects available then you can just design the roles and set required values for these authorization objects. In this case, the check to see which role is assigned to user, and what all actions the user is authorized to perform will be automatically performed. However, if there are no direct authorizations which you can use for this purpose, you could use the approach you have mentioned. I am not a security expert, maybe someone else can shed more light on whether this is the best possible approach or if there are better ways of handling this.

Answers (0)