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.

Privilege Action Necessary to Grant in Repository Role<br />

Package privilege None<br />

Analytic privilege None<br />

Application privilege None<br />

SQL object on activated object (for example, attribute<br />

view, analytic view)<br />

SQL object privilege on runtime object (for example,<br />

replicated table)<br />

Granting and Revoking<br />

None<br />

Grant privilege to user _SYS_REPO with WITH GRANT<br />

OPTION<br />

It is not possible to grant and revoke activated design-time roles using the GRANT and REVOKE SQL statements.<br />

Instead, roles are granted and revoked through the execution of the procedures GRANT_ACTIVATED_ROLE and<br />

REVOKE_ACTIVATED_ROLE. Therefore, to be able to grant or revoke a role, a user must have the SQL object<br />

privilege EXECUTE on these procedures.<br />

WITH ADMIN OPTION and WITH GRANT OPTION<br />

When you create a role on the basis of SQL statements (that is, as a runtime object), you can grant privileges with<br />

the additional parameters WITH ADMIN OPTION or WITH GRANT OPTION. This allows a user who is granted the<br />

role to grant the privileges contained within the role to other users and roles. However, if you are implementing<br />

your authorization concept with privileges encapsulated within roles created in design time, then you do not want<br />

users to grant privileges using SQL statements. Therefore, it is not possible to pass the parameters WITH ADMIN<br />

OPTION or WITH GRANT OPTION with privileges when you model roles as repository objects.<br />

Similarly, when you grant an activated role to a user, it is not possible to allow the user to grant the role further<br />

(WITH ADMIN OPTION is not available).<br />

Auditability<br />

The auditing feature of the <strong>SAP</strong> <strong>HANA</strong> database allows you to monitor and record selected actions performed in<br />

your database system. One action that is typically audited is changes to user authorization. If you are using roles<br />

created in the repository to grant privileges to users, then it is important to note that the creation of runtime roles<br />

through activation cannot be meaningfully audited.<br />

12.3.3 Creating Roles in the Repository<br />

You model roles in the <strong>SAP</strong> <strong>HANA</strong> repository in a domain-specific language (DSL).<br />

● A shared project must exist with a suitable package for storing roles.<br />

● You have the package and system privileges required for modeling and activating objects in the repository.<br />

324<br />

P U B L I C<br />

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

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

Setting Up Roles and Authorizations

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

Saved successfully!

Ooh no, something went wrong!