Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Limit access to views using HANA roles

Hi all,

I started an UI5 application in the HANA Web IDE with this package structure:

myAapp

     .xsaccess

     .xsapp

     Component.js

     index.html

     services

          ...

     views

          normalUser.controller.js

          normalUser.view.xml

          admin.controller.js

          admin.view.xml


As you can see I have one view, which should only be accessable to users with a certain admin role (= admin.view.xml) in the HANA database. The other view (= normalUser.view.xml) could be executed by any HANA user.


What is the best way to limit the access to my admin view? I read about the .xspriviledges file. Is this the right way for me?

Thanks in advance for your help.

Best regards

Dan

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question