The GetAuthorizationsforObject
method reduces the number of calls to the SAS Metadata Server for
authorization decisions that require permissions on multiple metadata
objects to be evaluated. For the specified set of metadata objects
and a corresponding set of permissions (which can be different for
each object), the method returns GRANT or a null value, and any PermissionCondition
objects that are associated with a GRANT. A null value indicates that
the permission was denied or not specified for the object.
When an empty string
is passed in CREDHANDLE, the method evaluates authorizations for the
calling user.
This is an example of
a PERMISSIONS array:
{ "Read", "Write", "Create Table", "Select" }
This is an example of
a RESOURCES array:
{
"OMSOBJ:Library/A5DRX6L4.AQ000001",
"OMSOBJ:Table/A5DRX6L4.AT000001",
"OMSOBJ:Column/A5DRX6L4.AU000006",
"OMSOBJ:Column/A5DRX6L4.AU000007"
}
This is an example of
a PERMMASK array:
{ 7, 15, 1, 2 }
Using information from
the previous examples, the PERMMASK array indicates the following:
-
the Read, Write, and Create Table
permissions are enforced for OMSOBJ:Library/A5DRX6L4.AQ000001
-
the Read, Write, Create Table,
and Select permissions are enforced for "OMSOBJ:Table/A5DRX6L4.AT000001"
-
the Read permission is enforced
for OMSOBJ:Column/A5DRX6L4.AU000006
-
the Write permission is enforced
for OMSOBJ:Column/A5DRX6L4.AU000007