cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori / UI5 Authorization using backend role

babu_kilari4
Active Contributor
0 Kudos

Fiori / UI5 / OData experts,

I need a little help in understanding a concept related to authorization in Fiori. If there is an UI5 application that has a button (let's say "Edit") and I want to either display or disable this depending on the user. Is it possible to do this with the help of authorization role that we have defined in the backend system. If yes, would UI5 screen be able to read this authorization profile ? The part where I am lost is, the backend authorization roles might control the content based on authorization object and in UI5 screen, I want to control this not based on authorization object but a UI5 button depending on the user.

Do I need to write some custom logic in OData to signal the UI5 code and control this accordingly (or) is there a standard way to achieve this.

Highly appreciate your inputs.

Thanks & Best Regards,

Babu Kilari

Accepted Solutions (1)

Accepted Solutions (1)

gregorw
Active Contributor

I think you're already on the right track. You should encapsulate the authorisation check required to control the buttons in a OData Entity or Function Import. But don't forget to check the authorisation again in the backend when the function that is triggered by the button is executed. You never can trust the frontend.

Answers (0)