Module ScopedPrivilegeService

Macros to access the privileges that are available at a given context.

Since: 2.1

Macro Summary
external

LSAF
%lsaf_getscopedprivileges(sas_dsname=work.lsafGetScopedPrivileges);
Gets the metadata for all of the scoped privileges that are available. The metadata is ...
external

LSAF
%lsaf_isscopedprivilege(lsaf_privilege=);
Indicates whether the specified value is a valid scoped privilege.

Macro Detail

%lsaf_getscopedprivileges(sas_dsname=work.lsafGetScopedPrivileges);

[ Exposure: external ]
Gets the metadata for all of the scoped privileges that are available. The metadata is
stored in a SAS data set.

Syntax:
%LSAF_GETSCOPEDPRIVILEGES(<SAS_DSNAME=SAS-data-set>);

          
History:
   2013-08-30
updates for standardization and coding conventions
   2016-08-26
rebrand as LSAF
   2019-01-13
renamed from lsaf_getcontextprivileges to lsaf_getscopedprivileges
   2019-11-01
update to handle a blank SAS output file.
Expected Macro Variables:
_lsafMsg_ - The return message.
_lsafRC_ - The return code.
Parameters:
sas_dsname - - Optional - The name of the output SAS data set to contain the metadata
        for the scoped privileges, specified as libref.dataset. The default value is
        WORK.LSAFGETSCOPEDPRIVILEGES. The data set contains a row for each privilege
        defined and columns with the following names. The data set is sorted by the
        privilegeId.
        - privilegeType: The privilege type: SCOPED
        - privilegeId: The identifier of the privilege.
        - privilegeName: The name of the privilege.
File: lsaf_getscopedprivileges.sas
First available in version: 1.2

%lsaf_isscopedprivilege(lsaf_privilege=);

[ Exposure: external ]
Indicates whether the specified value is a valid scoped privilege.

The SAS macro variable _lsafIsScopedPrivilege_ is set to a value of 1, if the specified value is
a valid scoped privilege, 0 if it is not. In the event of an incorrect call to the macro that
results in an error, the return value of _lsafIsScopedPrivilege_ is set to -1.

To retrieve a list of scoped privileges, submit the lsaf_getscopedprivileges macro.

Syntax:
%LSAF_ISSCOPEDPRIVILEGE(LSAF_PRIVILEGE=lsaf-privilege-id);

          
History:
   2019-01-21
initial coding
Expected Macro Variables:
_lsafIsScopedPrivilege_ - Indicates whether the item is a valid scoped privilege.
_lsafMsg_ - The return message.
_lsafRC_ - The return code.
Parameters:
lsaf_privilege - - Required - The scoped privilege ID.
File: lsaf_isscopedprivilege.sas
First available in version: 2.1