Verifying Read Access to Metadata-Bound Data

Who Can Read Metadata-Bound Data?

In order to read metadata-bound data, you must be connected to the target metadata server as an identity that has the following metadata-layer effective access:
  • the ReadMetadata permission (for the target secured table object and its parent secured library object)
  • the Select permission (for the target secured table object)
If you are accessing the data from a client that uses metadata in order to locate data, you must also have the ReadMetadata permission for the corresponding traditional table object.
If the data is accessed through the MLE, you must also have the Read permission for the corresponding traditional table object.

Example

In this example, you connect to a metadata server as a restricted user, set up a libref that points at a metadata-bound library, and then write a description of the contents of one of the metadata-bound tables within that library.
options
     metaserver="machine.company.com"
     metauser="sasdemo"
     metapass="********";

libname secdemo 'path';

proc datasets library=secdemo nolist;
   contents data=EMPINFO out=testout;
   title 'Contents of the Metadata-Bound Table EMPINFO';
run;    

See Also

Chapter 15, “DATASETS Procedure,” in Base SAS Procedures Guide