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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Now when a database user requests access to a secured view containing product information, the data returned<br />

will be filtered according to the following condition:<br />

(product LIKE "ELECTRO*" OR product IN<br />

(AUTHORIZATION.DETERMINE_AUTHORIZED_PRODUCT_FOR_USER())<br />

12.4.5 Creating Analytic Privileges<br />

● To create, activate and drop the privilege you have system privileges CREATE STRUCTURED PRIVILEGE and<br />

STRUCTUREDPRIVILEGE ADMIN.<br />

● Make sure that both CREATE STRUCTURED PRIVILEGE and STRUCTUREDPRIVILEGE ADMIN are correctly<br />

owned by SYS_REPO user.<br />

● To activate and redeploy analytic privileges in the Modeler, a database user requires corresponding repository<br />

privileges, namely REPO.EDIT_NATIVE_OBJECTS and REPO.ACTIVATE_NATIVE_OBJECTS<br />

You apply analytic privileges when business users access values with certain combinations of dimension<br />

attributes. You can use analytic privileges to partition data among various users sharing the same data<br />

foundation. You can define restrictions for a selected group of models or apply them to all content models across<br />

packages.<br />

After activation, an analytic privilege needs to be assigned to a user before taking any effect. The user views the<br />

filtered data based on the restrictions defined in the analytic privilege. If no analytic privilege applicable for models<br />

is assigned to a user, he cannot access the model. If a user is assigned to multiple analytic privileges, the<br />

privileges are combined with OR conditions.<br />

Remember: In addition to the analytic privileges, a user needs SQL Select privileges on the generated<br />

column views.<br />

The generated column views adhere to the following naming conventions:<br />

For a view “MyView” in package “p1.p2” (i.e. subpackage p2 of package p1) the generated column view lies in<br />

schema _SYS_BIC and is named “_SYS_BIC”.”p1.p2/MyView”. Ensure that the users who are allowed to see the<br />

view have select privileges on the view (or the entire schema _SYS_BIC).<br />

Note: Multiple restrictions applied on the same column are combined by OR. However, restrictions across<br />

several columns are always combined by AND.<br />

1. Set Parameters for the Analytic Privilege<br />

a) In the Modeler perspective, expand the system node from the Navigator panel.<br />

b) Expand the Content node.<br />

c) Select the required package.<br />

d) From the context menu, choose New Analytic Privilege .<br />

1. Enter a name and description for the analytic privilege, and choose Next.<br />

2. Select the information models that you want to use for applying restrictions.<br />

3. Choose Finish.<br />

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

Setting Up Roles and Authorizations<br />

Tip: You can choose to add more models in the editor pane.<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!