28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12.4.6 Granting Privileges to Users<br />

Privileges can be granted to database users either directly, or indirectly through roles that they have been<br />

granted. In this case, the privileges are inherited. Roles are the standard mechanism of granting privileges to<br />

users.<br />

To be able to grant and revoke privileges and roles to and from users and roles, the following prerequisites must<br />

be met:<br />

Action Prerequisite<br />

Grant system privilege, object privilege, or package<br />

privilege to user or role<br />

Granting user must have the privilege being granted<br />

and be authorized to grant it to other users and roles<br />

Grant analytic privilege to user or role Granting user must have the object privilege EXECUTE<br />

Grant object privilege on activated modeled objects,<br />

such as calculation views, to user or role<br />

on the procedure<br />

GRANT_ACTIVATED_ANALYTICAL_PRIVILEGE<br />

Granting user must have the object privilege EXECUTE<br />

on the procedure<br />

GRANT_PRIVILEGE_ON_ACTIVATED_CONTENT<br />

Grant role created in runtime to user or role ● Granting user must have the role being granted<br />

and be authorized to grant it to other users and<br />

roles, or<br />

● Granting user must be have the system privilege<br />

ROLE ADMIN<br />

Grant role created in the repository to user or role Granting user must have the object privilege EXECUTE<br />

on the procedure GRANT_ACTIVATED_ROLE<br />

Grant application privilege Granting user must have the object privilege EXECUTE<br />

Grant object privilege on schema containing activated<br />

modeled objects, such as calculation views, to user or<br />

role<br />

Revoke system privilege, object privilege, or package<br />

privilege from user or role<br />

Revoke object privilege on schema activated<br />

containing modeled objects, such as calculation views,<br />

from user or role<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Roles and Authorizations<br />

on the procedure GRANT_APPLICATION_PRIVILEGE<br />

Granting user must have the object privilege EXECUTE<br />

on the procedure<br />

GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONT<br />

ENT<br />

Revoking user must be the user who granted the<br />

privilege<br />

Revoking user must have the object privilege EXECUTE<br />

on the procedure<br />

REVOKE_SCHEMA_PRIVILEGE_ON_ACTIVATED_CON<br />

TENT<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 345

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!