Usage Note 40628: How to automate adding users and groups to a SAS® Metadata Repository
Bulk–Load is an automated approach to adding and maintaining user identities that compliments the manual steps you can perform within SAS® Management Console. Bulk–Load refers to the importing and synchronization of users and groups from an external source, such as LDAP, a host password file, or another data source containing user and group information, into the SAS® Metadata Repository.
Depending on the source of your existing users and groups (Active Directory or LDAP, /etc/passwd, or other file) you can start with one of the sample programs, importad, importpw, or the Sample Code for Generic File Import program. These programs provide the basic logic for performing the initial load for users and groups. As these are sample programs, you will have to make modifications to them to support your specific environment and requirements. The importad.sas and importpw.sas programs are included in your SAS® Foundation installation in !sasroot/samples/base directory (for UNIX systems) and !sasroot\core\sample folder (for Windows systems). On mainframe systems, they are located in your Sample library, &prefix.W0.SAMPLE(IMPORTAD) and &prefix.W0.SAMPLE(IMPORTPW), respectively. The Sample Code for Generic File Import program is shown in the Appendix section of the documentation.
These three programs provide the structure for the initial loading of users and groups into the SAS Metadata Repository. Maintenance, or synchronization, of users and groups with your site's master user and group list should be done via synchronization code. This process is also documented in the Appendix, in the section titled "How to Synchronize Imported Identity Information".
Note that these programs create the SAS Metadata identities. They do not set authorizations for these identities.