Magically Importing Users from Microsoft Active Directory to SAS Metadata

UsersZencos has a 4th paper to present this year at SAS Global Forum.  It provides a useful way to selectively import users from Active Directory to SAS metadata.  This is beneficial for environments with strict change controls around user creation in SAS.  Rather than manually create users in SAS Management Console, this paper presents a stored process, which can be run from a web browser, that imports users easily.

Stephen Overton will be presenting this final paper on Wednesday April 25th at 10:30am.

View the Paper: Automagically Herding 101 SAS® Users from Microsoft Active Directory to SAS Metadata

Divide and Conquer OLAP Cubes with High Volumes of Data

Zencos will also be presenting a paper at SAS Global Form this year on best practices for loading OLAP cubes with high volumes of data. Stephen Overton will be presenting paper number 431-2012 Monday April 23 at 3pm.

High volumes of data can be summarized most efficiently using OLAP technology. As volumes of data approach the millions and even billions of rows of data, loading an OLAP cube can become extremely challenging due to system constraints. Stephen’s paper presents a technique that uses SAS macro programming to divide and load data incrementally into an OLAP cube. Using this technique ensures the cube will build successfully but also provides users access to the cube while it is being loaded. The paper also highlights OLAP programming techniques that allow you to streamline the cube building process and minimize the impact of errors.

Go sign up and learn!

View the Paper: 10,000 Leagues of Data… Divide and Conquer OLAP Cubes: Best Practices for High Volumes of Data

Effective BI Reporting at SAS Global Form 2012

Zencos will also be presenting another paper at SAS Global Forum this year on best practices for developing a guided-analysis using SAS Web Report Studio. Stephen Overton will be presenting paper number 020-2012 Monday April 23 at 11:30am.

The paper will be about ways to use the SAS Enterprise business intelligence platform to consume business information. SAS BI Dashboard can be used to report high-level key performance indicators at-a-glance through the SAS Information Delivery Portal. Detailed Web-based reports can also be surfaced from the SAS Information Delivery Portal through SAS Web Report Studio. Stephen’s paper presents an information system that integrates the functionality of these tools to answer business questions faster and with a greater understanding of the key drivers of business-critical data. This paper also presents the data infrastructure needed to support this type of information system through the use of OLAP technology, effective data architecture, report linking, and information maps.

Information Path

Sign up!

View the Paper: Lost in Wonderland? Methodology for a Guided Drill-Through Analysis Out of the Rabbit Hole

Data Warehousing at SAS Global Forum 2012

Zencos will be presenting a series of papers at SAS Global Forum this coming April.  Be sure to register and sign up!

One paper will be centered around the change data capture process of building an Enterprise Data Warehouse.  Stephen Overton will be presenting this on Monday, April 23 at 3:30pm.  The paper number is 112-2012.

The paper is about developing a flexible ETL process to capture data changes efficiently. Data sources integrated into an Enterprise Data Warehouse most likely will have different extraction frequencies as well as different time granularity. One of the key steps in loading a data warehouse is to detect changes in these data sources and keep only the pertinent data. In other words, extract and insert only data that has not already been extracted and inserted. The paper will present a flexible process to extract and load new data during any phase of loading a data warehouse. The process can be run dynamically at any time and requires no set schedule. The paper will also include a SAS program to manage data retention in the warehouse. Both processes are centrally managed and operate independent of each other.

Check out SAS Global Forum here: http://support.sas.com/events/sasglobalforum/2012/index.html

View the Paper: Developing a Flexible ETL Process to Let SAS® Capture Data Changes Efficiently in a Data Warehouse and Clean Up the Mess

  

Column Level Security for Web Reports

As SAS Usage Note 45094 clearly points out “Column-level security is not supported in SAS® Web Report Studio”. But, you have to build a web report that will display fields with sensitive information to one group of users but not to another. So, now what?

One possible solution would be to create 2 information maps and 2 web reports. The first information map would contain the sensitive data field and would be used to build a corresponding web report. Both the information map and web report would have metadata read access granted to the user group authorized to view the sensitive data. Conversely, the second information map would not contain the sensitive data field and therefore neither would its corresponding web report. This information map and web report would have metadata read access granted to the wider user audience. So, problem solved, right? Not so fast. What if your customer doesn’t want 2 information maps and 2 web reports? What if they have a hard requirement that there is only a single web report which will display the sensitive data to some users and hide it from others?

Let’s explore the use of SAS views as the information map data source. While we won’t be able to actually hide the sensitive data field, we certainly can mask its values with this approach. This way we can build a single information map pointing to the SAS view and then create a single web report from that information map.

There are a couple tricky pieces in this puzzle:

  • How do we know the identity of the user viewing the web report?

    Well, that depends on whether your environment is using pooled workspace servers or not. With pooled workspace servers, the SAS system option metauser can be parsed to retrieve the user ID. With non-pooled workspace servers, the SAS macro variable sysuserid does the trick. It’s probably a good idea to check both, just in case.

  • How do we know if the user has authorization to view the sensitive data field?

    Set up a security group in the SAS metadata called maskdata, for example. For members of this group, the sensitive data field will appear masked, blanked out, or whatever you decide is best. With this security group established, you should be able to write OMI code (Open Metadata Interface) which queries the metadata to check whether the user viewing the web report is a member of the maskdata group or not.

Here is the SAS view solution using the sample data set sashelp.class:

/* assumes that the name of the security group in the metadata is "maskdata" */
data out.class / view=out.class;
drop maskdata username memberuri memberName n numMembers rc;
retain maskdata 0 username;

/* determine group membership - only execute once */
if _n_=1 then do;
/* retrieve user ID viewing web report */
username=upcase(symget('sysuserid'));
/* If non-pooled workspace server sysuserid will return the id of the user viewing the web report. Otherwise, for pooled servers, it will return SASSRV.*/
if username eq 'SASSRV' then
/* For pooled servers, parse the value of the system option metauser to retrieve the user ID. */
username=scan(getoption('metauser'),1,'@');
/* Use OMI functions to retrieve metadata about users and groups */
length memberuri $1000;
length memberName $200;

/* all return strings must be initialized */
memberuri='';
/* get the number of user IDs which are members of the "maskdata" user group */
numMembers=metadata_getnasn("omsobj:IdentityGroup?@Name='" !! "maskdata" !! "'","MemberIdentities",1,memberuri);
/* Retrieve each member of "maskdata" and see if it matches the user ID viewing the web report. If it matches then set the flag maskdata to 1 and jump out of the loop. */
do n=1 to numMembers;
memberName='';
numMembers=metadata_getnasn("omsobj:IdentityGroup??@Name='" !! "maskdata" !! "'","MemberIdentities",n,memberuri);
rc=metadata_getattr(memberuri,'name',memberName);
memberName=upcase(memberName);
if strip(upcase(username)) eq memberName then do;

/* the user viewing the web report is not allowed to see the sensitive data */
/* flag them as a member of the "maskdata" group */
maskdata=1;
/* jump out of loop */
leave;
end;
end;
end;

/* read source table */
set sashelp.class;
/* if user is a member of the "maskdata" group, then mask sensitive data field value */
if maskdata then
sex='x';
run;

SAS Web Report Studio Video Tutorial, Part 3

Part 3 of 3 Videos on SAS Web Report Studio for beginners.

SAS Web Report Studio Video Tutorial, Part 2

Part 2 of 3 Videos on SAS Web Report Studio for beginners.