Hello everyone,
I was doing the SAP HANA Web Workbench - Hello User! tutorial on how to create and grant roles to your hana application.
I created the application and roles, so as soon as the role and xsaccess files are defined i get the message that i cannot access the application. So far
everything works as expected.
But when I then call the SQL statement to grant the role to my user nothing changes. Does one of you have any idea what it might be? As far as I am concerned I did alle the steps.
Thank you very much in advance for any help!
Best regars
Sebastian
Here are my files:
xsaccess:
{
"exposed" : true,
"authorization" : ["pxxtrial.bigdata.airlines::airline_access"]
}
xsprivileges:
{ "privileges" :
[
{
"name" : "airline_access",
"description" : "Access to the airline data application"
}
]
}
airline_user.hdbrole:
role pxxtrial.bigdata.airlines::airline_user {
application privilege: pxxtrial.bigdata.airlines::airline_access;
}
I executed the follwing sql commands, everything was finished successfully without error, but still none of those seem to be working:
CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('pxxtrial.bigdata.airlines::airline_user','pxxtrial')
CALL "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS"
CALL "HCP"."HCP_SYNCHRONIZE_ROLES"
I also tried to log off and back on again after granting the role.