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.

The activated role is now visible in the Navigator view under Security Roles following the naming convention<br />

package::role_name and can be granted to users as part of user provisioning.<br />

Complete Role Definition Example<br />

role ::<br />

extends role sap.example::role1<br />

extends catalog role "CATROLE1", "CATROLE2"<br />

{<br />

// system privileges<br />

system privilege: BACKUP ADMIN, USER ADMIN;<br />

// schema privileges<br />

catalog schema "SYSTEM": SELECT;<br />

schema sap.example:app1.schema: INSERT, UPDATE, DELETE;<br />

// sql object privileges<br />

// privileges on the same object may be split up in several lines<br />

catalog sql object "SYSTEM"."TABLE2": SELECT;<br />

catalog sql object "SYSTEM"."TABLE2": INSERT, UPDATE, DELETE;<br />

// or a list of objects may get a list of privileges (object =<br />

table, view, procedure, sequence)<br />

// SELECT, DROP for all objects in list<br />

sql object sap.example:VIEW1.attributeview,<br />

sap.example:PROC1.procedure, sap.example:SEQ1.sequence: SELECT, DROP;<br />

// additional INSERT, UPDATE for TABLE1<br />

sql object sap.example:MY_VIEW.attributeview: DROP;<br />

// analytic privileges<br />

analytic privilege: sap.example:sp1.analyticprivilege,<br />

sap.example:AP2.analyticprivilege;<br />

catalog analytic privilege: "sp3";<br />

}<br />

Related Links<br />

// design time privileges<br />

package sap.example: REPO.EDIT_NATIVE_OBJECTS;<br />

package sap.example, sap.co: REPO.READ;<br />

application privilege: sap.example::Execute, sap.example::Save;<br />

Setting Up Your Application [page 34]<br />

In <strong>SAP</strong> <strong>HANA</strong> Extended Application Services (<strong>SAP</strong> <strong>HANA</strong> XS), the design-time artifacts that make up your<br />

application are stored in the repository like files in a file system. You first choose a root folder for your<br />

application-development activities, and within this folder you create additional subfolders to organize the<br />

applications and the application content according to your own requirements.<br />

The Application-Privileges File [page 59]<br />

In <strong>SAP</strong> <strong>HANA</strong> Extended Application Services (<strong>SAP</strong> <strong>HANA</strong> XS), the application-privileges (.xssprivileges)<br />

file can be used to create or define the authorization privileges required for access to an <strong>SAP</strong> <strong>HANA</strong> XS<br />

application, for example, to start the application or to perform administrative actions on an application. These<br />

privileges can be checked by an application at runtime.<br />

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

328<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!