Previous Page | Next Page

Modifying and Maintaining Cubes

Cube Security


Setting Permission Conditions on Cube Dimensions

SAS security enables you to set authorization permissions on a cube and the various components of a cube, such as hierarchies and levels. You can also apply member-specific filters to cube data by using MDX expression filters known as permission conditions. Permission conditions limit access to members of a cube dimension so that only designated portions of the data are visible to a user or group of users. With SAS OLAP data, permission conditions impose only explicit grants of the Read permission and can be specified only on dimension objects.

Permission conditions rely on the SAS OLAP Server for enforcement. At query time, the server performs the filtering to determine which dimension members should be returned to each requesting user. The members that are returned by the MDX expression must all belong to the dimension on which the permission condition is defined. Each filter consists of an MDX expression which subsets the data in a dimension as appropriate for a particular user or group. The filters are stored in the cube metadata.

You can set permission conditions from within SAS OLAP Cube Studio or from within SAS Management Console using the Authorization tab. You can define new permission conditions and modify existing permission conditions for a user or group identity. To create a permission condition, follow these steps:

  1. From within SAS OLAP Cube Studio, select a cube in the tree view and drill to a dimension. In the dimension's Properties dialog box, select the Authorization tab.

  2. Select (or add) the user or group whose Read access you want to limit. In the permissions list, add an explicit grant of the Read permission for that user or group.

  3. If the selected user or group does not already have a permission condition defined, the Add Authorization button is now enabled. Click Add Authorization to open the Add Authorization dialog box. You can now create an MDX expression filter by specifying members and permissions for the expression filter. From this dialog box, you can also launch the Build Formula dialog box and create an MDX expression filter that limits the current dimension as appropriate for the selected user or group.

  4. If the selected user or group does already have a permission condition defined, the Edit Authorization button is now enabled. Click Edit Authorization to open the Build formula dialog box and create an MDX expression filter.

See the example Setting Member Authorizations On A Dimension for more details.

Note:   For more information on OLAP member-level security, see the SAS OLAP Member Authorization Help in SAS Management Console. Also, see "OLAP Member-Level Permissions" in the SAS Intelligence Platform: Security Administration Guide.   [cautionend]


SECURITY_SUBSET PROC OLAP Option

After you have set the necessary permission conditions for dimension members, you must indicate whether the OLAP Server includes these permission conditions when processing cube queries. In order for a cube to control the roll-up values for designated members, the SECURITY_SUBSET PROC OLAP option must be set to YES when the cube is built. The SECURITY_SUBSET= option is used in conjunction with permission conditions to specify whether the roll-up values include only the members in the permission condition or all members in the cube. If you set SECURITY_SUBSET= YES, cell values are recalculated at query time based on the security subset defined by the active permission conditions for the given user. If you set SECURITY_SUBSET=NO, the OLAP Server does not recalculate the cell values. The default value (NO) includes all members within a total.

Note:   For more information, see the SECURITY_SUBSET PROC OLAP option and the topic "SAS OLAP Security Totals and Permission Conditions" in the SAS OLAP Server: MDX Guide.  [cautionend]


Identity-Driven Security

It is sometimes necessary to substitute identity values in a permission condition to further refine member-level security. Identity-specific values are dynamically derived according to the user ID with which a client is authenticated. Those values are then used to filter the target data. The identity-specific values are derived from identity-driven properties that are stored in the metadata for each user and group.

The identity-driven properties are as follows:

SAS.ExternalIdentity

This property translates to optional, site-specific values such as Employee ID. Those values are not automatically stored in the metadata repository and need to be loaded and maintained.

SAS.IdentityGroupName

This property resolves to the name of the requesting group identity (for example, Portal Admins Group).

SAS.PersonName

This property resolves to the name of the requesting user identity (for example, SAS Demo User).

SAS.IdentityName

This property returns the name of either the requesting group identity or the requesting user identity, depending on whether the user ID is a group login or a personal login.

SAS.Userid

This property translates to the authenticated user ID, normalized to one of the uppercase formats USERID or USERID@DOMAIN (for example, SASDEMO@LXXXXX).

SAS.IdentityGroups

This property resolves to the names of the groups of which a user is a member.

Note:   For more information on OLAP member level security, see the topic "OLAP Member-Level Permissions" in the SAS Intelligence Platform: Security Administration Guide.  [cautionend]


Build Formula Dialog Box

You can apply identity values to a permission condition from the Build Formula dialog box. To access this dialog box, select a cube dimension from within SAS Management Console or SAS OLAP Cube Studio. The dimension Properties dialog box contains an Authorization tab. From here, you can assign Read access to the appropriate user or group. You can then select the Edit Authorization button. This opens the Build Formula dialog box. The identity values are then located on the Data Sources tab. On the Data Sources tab, you can select an identity property and insert it into the MDX expression that you are building.

See Setting Identity Driven Security for more details.

Note:   For more information on identity-driven properties for OLAP member authorization see the SAS OLAP Member Authorization Help in SAS Management Console. Also, see "Identity-Driven Properties" in the SAS Intelligence Platform: Security Administration Guide  [cautionend]


Integrated Windows Authentication and Single Sign-On


Single Sign-On (SSO) to SAS IOM Bridge servers

Single sign-on (SSO) is an authentication model that enables users to access a variety of computing resources without being repeatedly prompted for their user IDs and passwords. This functionality enables a client application to connect to a SAS IOM Bridge Server as the currently logged-on user. For example, single sign-on can enable a user to access SAS servers that run on different platforms without interactively providing the user's ID and password for each platform. Single sign-on can also enable someone who is using one application to launch other applications based on the authentication that was performed when the user was initially logged on to the system.


SSO and SAS OLAP Cube Studio

When you have logged on to a metadata server in SAS OLAP Cube Studio, you can perform a variety of functions, including building a cube and saving the metadata for that cube, editing cube metadata, and viewing cube properties. Some functions within SAS OLAP Cube Studio also require a workspace server or an OLAP server in addition to the metadata server. These functions include Build Physical Cube, Incremental Cube Update, Calculated Members, and Cube View. Single sign-on enables you to seamlessly access these servers without having to provide your login credentials. Two technologies are available in SAS 9.2 to accomplish this:

  1. Integrated Windows authentication is available when the client and server are both running on Windows.

  2. a trusted peer connection is available otherwise.

Note:   Before using single sign-on, you must have a user defined in the metadata repository for any user ID that you want to connect to the metadata server with.  [cautionend]


Integrated Windows Authentication

A client and server engaged in Integrated Windows authentication use Microsoft's Security Support Provider Interface (SSPI) to choose the best security package for their configuration. When you first open SAS OLAP Cube Studio you are prompted to log on to a metadata server with a connection profile that you have previously created. This connection profile contains information about the metadata server, including the machine ID, port ID, user ID, and password. There is also a check box labeled Use Integrated Windows authentication (single sign-on). If this check box is selected, then you will use Integrated Windows authentication (IWA) to connect to the servers (metadata server, workspace server, and OLAP server). You will not need to provide a user ID or password when you open SAS OLAP Cube Studio. The user ID and password of your current Windows session will be used. By default this option is not selected when you create a connection profile in SAS OLAP Cube Studio.

Note:   For more information on Integrated Windows authentication see "Integrated Windows Authentication" in the SAS Intelligence Platform: Security Administration Guide.   [cautionend]


Trusted Peer Connection

The other authentication technology is a trusted peer connection. This method depends heavily on the integrity of the client environment. The IOM Bridge protocol client obtains the identity of the user of the client application from the system environment. When a trusted peer connection is being used, you are prompted during an initial login for your user ID and password when connecting to a metadata server. This is the behavior of previous versions of SAS OLAP Cube Studio. However, when a connection to a workspace server (submitting procedure code) or a connection to an OLAP server (cube viewer) is made in SAS 9.2 OLAP Cube Studio, you are no longer prompted to log on. The connection is created using the metadata server login credentials.

Note:   For more information on trusted peer connections, see "Trusted Peer" in the SAS Intelligence Platform: Security Administration Guide.  [cautionend]


Exporting Code

In SAS OLAP Cube Studio, you can export PROC OLAP code that you have created while using various functions and wizards, including Cube Designer, Aggregations Tuning, and Incremental Update. The Export Code function enables you to save PROC OLAP code to a designated file. When using the Export Code function, some of the metadata connection profile information is saved to the file. The host and port information for the metadata server is saved to the exported file. In addition, the information is displayed on the Finish page of the different wizards. However, the user ID and password are not saved to the exported file or displayed on the Finish page. This is because single sign-on authentication removes the need to display or save the user ID and password.


Security for Drill-through Tables

Different users of cube data may have different security and access restrictions that must be adhered to and applied when querying the underlying data for a cube. When selecting a data table for drill-through, you may need to define user restrictions for certain data in the drill-through table. The SAS Metadata LIBNAME engine is used to assign the drill-through table library on a per-session basis. This allows client credentials to be used when determining which columns the user can see. Columns which have ReadMetadata permissions denied on the drill-through table will not be visible to the user. If access is denied for a column on the drill-through table, that level must also be denied Read access in the cube. Conversely, if a level is denied Read access in the cube, that column in the drill-through table must have ReadMetadata access denied. For more information on the SAS Metadata LIBNAME engine see the topic "Pre-assigning Libraries" in the SAS Intelligence Platform: Data Administration Guide.

Because of this enforcement, the following changes could affect your site:

Note:   For further information on drill-through tables, see Defining Drill-Through Tables.  [cautionend]


Applying Batch Security with Permission Tables

When applying permissions to a cube, you might need to address permissions for different combinations of users, groups, SAS OLAP Servers, schemas, and cubes, as well as different elements of the cube, including the dimensions, hierarchies, levels, and measures. For example, you might need to grant ReadMetadata and Read access to the group that contains specific cube users. Or you might need to restrict Read access for different components of a cube (dimension, hierarchy, level, or measure) using MDX conditions for each cube component, per user, consumer, or group. These various combined permission settings can be easily created and managed with batch security that is applied through permission tables.

Starting in the third maintenance release for SAS 9.2, you can specify batch security in SAS OLAP Cube Studio and SAS Data Integration Studio with the Manage Permission Tables function. The Manage Permission Tables function enables you to create a special SAS data set known as a permission table that contains cube access controls for submitting in bulk. A permission table is a table of access control information that can later be applied to a cube with batch SAS code. The Manage Permission Tables dialog box enables you to create and modify permission tables as well as import access controls (permissions) from a cube or an OLAP schema. You can also execute the code interactively or export the code to a file for use in a stored process or deployed job flow.

When a cube is created, security for that cube is determined by the permission settings that are found in the cube metadata. In SAS OLAP Cube Studio, permission tables will appear in the metadata tree as a table. You must have WriteMetadata access to create and modify permission tables. To access the Manage Permission Tables function in SAS OLAP Cube Studio, select Tools [arrow] Manage Permission Tables. The Manage Permission Tables dialog box opens.

Previous Page | Next Page | Top of Page