on 01-14-2016 6:02 PM
Hello all,
I have a schema A that has tables and views.
User/Schema B can view the data and the definition of the tables.
Schema B can do a data preview of the view. However Schema B is getting an error when trying to view the definition of the views created in Schema A.
Schema B has the Schema A catalog object privilege.
So what could be missing here that Schema B cannot view the definition of the Schema A views?
Hello,
To find what privilege you are missing to view the definitions please follow this:
http://wiki.scn.sap.com/wiki/display/TechTSG/Troubleshooting+SAP+HANA+Privileges+and+Authorisations
This will help to find what exact privilege you need to grant.
BR
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When User B tries to open the definition for the Table View created in Schema A we are getting the error. The current user has no priviledge on and no Catalog READ or DATA ADMIN. What is missing for user b?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add System Privilege CATALOG READ directly or add a role which contains CATALOG READ.
That should resolve the problem. For your reference, I have the below System Privileges. But all are not needed in this case.
Have a look here GRANT - SAP HANA SQL and System Views Reference - SAP Library .
Cheers
Anindya
Hello , You are correct. I have assigned a role that contains catalog read and it works now. I wanted to assigned the catalog read directly to the user but i am getting an error saying that "Could not grant privilege CATALOG READ You are not authorized to perform the required actions" So what kind of users can grant system privileges?
You might try with SYSTEM user. Or may be with some user who has USER_ADMIN System Privilege, I am not sure , need to look for exact privilege.
May be your user id need access to CATALOG READ with GRANT OPTION ( which is currently missing ) . So , you are unable to grant it to someone else.
Cheers
Anindya
You need to give access to _SYS_REPO to SCHEMA A , because internally everything accessed by _SYS_REPO .
ooops!! you are not getting the problem during activation , you are getting that during viewing data model ? Is that rigtht ?
What is there for User B under Object Privilege , B should also have access for _SYS_BIC and _SYS_BI
Cheers
Anindya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.