This repository provides some SAS® XML Libname Engine maps that can be used for reading Metadata Security Test XML files exported from Metacoda® Security Plug-ins.
Metacoda customers and partners may find these maps useful if they want to do their own custom processing or reporting on data available via Metacoda Security Plug-ins and exported in Metadata Security Test XML format.
Metadata Security Test XML files are usually used for automated testing of SAS platform metadata security implementations, but can also be used as a source of enhanced metadata security information for custom reporting. Whilst Metacoda Security Plug-ins provide HTML and basic CSV export features, for more advanced requirements Security Test XML files can also be considered. Security Test XML files can be exported either manually using Metacoda Plug-ins from within SAS Management Console, or in batch using the Metacoda Plug-ins Batch Interface.
You will need a Metadata Security Test XML file, as generated by Metacoda Security Plug-ins. If you have Metacoda Plug-ins installed in SAS Management Console, you can export one interactively.
- Launch SAS Management Console and connect to the required SAS metadata server.
- Select the Reviewer plug-in that contains the data you need. e.g. Metacoda User Reviewer.
- Using the toolbar button, or the context menu available by right-clicking over the reviewer icon, select the Export Metadata Security Test XML... menu item.
- In the export wizard check all the items you need in the export file, specify where you want the XML file to be saved and export the file.
Choose the XML map that corresponds the chosen Reviewer e.g. user-reviewer-sectest.xml and use the map with a SAS XML libname statement like so:
filename sectest "input/user-reviewer-sectest.xml" lrecl=32767 encoding="utf-8";
filename map "user-reviewer-sectest-map.xml" lrecl=32767 encoding="utf-8";
libname sectest xml xmlfileref=sectest xmlmap=map access=readonly;
title1 "Users";
proc print data=sectest.users;
run;
title1 "Group Memberships for Users (Direct+Indirect)";
proc print data=sectest.userGroupMemberships;
run;
title1 "Role Memberships for Users (Direct+Indirect)";
proc print data=sectest.userRoleMemberships;
run;
title1 "Available Logins for Users (Direct+Indirect)";
proc print data=sectest.userLogins;
run;
libname sectest;
filename map;
filename sectest;
For more examples see the *-sample.sas
files that accompany each map XML file.
You may find the following resources useful when reviewing this documentation, the maps and sample code:
- Metacoda Security Plug-ins Product Page
- Metacoda Security Testing Framework Product Page
- Metacoda Plug-ins Customer Documentation
- SAS® 9.4 XML LIBNAME Engine: User's Guide
The maps and samples contained in this repository are licensed under the terms of the Apache License 2.0. See LICENSE.txt for more information.
Metacoda Security Plug-ins, as required to export Metadata Security Test XML files read using these maps, is a commercial product from Metacoda Pty Ltd, and must be separately licensed from Metacoda if you want to use these maps with it.
Metacoda® and all other Metacoda product or service names are registered trademarks or trademarks of Metacoda Group Pty Ltd in the USA and other countries.
SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.
Other product and company names mentioned herein may be registered trademarks or trademarks of their respective owners.