Previous Page | Next Page

DATA Step Functions for Metadata Security Administration

Introduction to DATA Step Functions for Metadata Security Administration


What Are the DATA Step Functions for Metadata Security Administration?

These DATA step functions enable an administrator to programmatically define or query authorization settings on objects in the SAS Metadata Server. In addition, these functions enable the administrator to create and manipulate access control templates (ACTs) and apply them to objects in the metadata server.

With the metadata security administration functions, the administrator does not need to know how the access controls are stored in metadata. The administrator specifies which permission should be granted or denied to a user, and the metadata server makes the appropriate change in the metadata. These tasks can also be performed with PROC METADATA or the DATA step functions for reading and writing metadata, but those methods can be complicated, and achieving the desired result can be more difficult.

Note:   To create security reports about authorization, use the macros that SAS provides. The macros extract authorization information into SAS data sets that you can use to create security reports. For more information, see the SAS Intelligence Platform: Security Administration Guide.  [cautionend]

Here are the functions, organized by task:

Task Functions Example
Transaction context control METASEC_BEGTRAN Function

METASEC_ENDTRAN Function

Example: Begin and End Transaction Context
Access control definition METASEC_APPLYACT Function

METASEC_GETNACT Function

METASEC_GETNAUTH Function

METASEC_GETNID Function

METASEC_REMACT Function

METASEC_SETAUTH Function

Example: Working with ACTs
ACT manipulation METASEC_DELACT Function

METASEC_GETACTA Function

METASEC_GETNACTA Function

METASEC_NEWACT Function

METASEC_SETACTA Function

Example: Working with ACTs


Transaction Contexts and URIs

The METASEC_BEGTRAN function creates a transaction context (TC), and the METASEC_ENDTRAN function ends it. The TC instance is located in the metadata server. The TC instance maintains the state of authorization query results and update requests for a client that is using the security administration interface. The TC accumulates changes that are requested for a single object. Submitting the METASEC_ENDTRAN function commits or discards changes, and then ends the TC.

Here are some usage notes:

If the URI refers to a standard metadata object, but not to an ACT or to a SAS Metadata Repository, you can use a standard URI. For more information, see What Is a URI?.


Using the %MDSECCON() Macro

In the DATA step functions for metadata security administration, two arguments are represented in the SAS Open Metadata Architecture as bit flags that can be combined with an OR operation. One argument is flags, which is used in many of the functions. The other argument is auth in the METASEC_GETNAUTH function.

To simplify usage for the DATA step functions, instead of specifying a numeric parameter, you specify macro variables with easily recognizable names. To use the macro variables, you must first submit the macro %MDSECCON(). The appropriate macro variables are documented with the functions.

Previous Page | Next Page | Top of Page