I recently had a case for a customer who had exactly this situation. I'm a bit surprised that someone hasn't surfaced code for this sooner. Better late than never, a macro for this has been added at technical-support-code/usage/administration/sas-metadata-server/create_metadata_login_s9.sas at main · sascommunities/technical-support-code · GitHub
%createLoginObject(
Person_Name=sasdemo /* REQUIRED: metadata name for Person object */
,Authdomain=OracleAuth /* REQUIRED: metadata name for the Authdomain for the Login object */
,Login_userid=scott /* OPTIONAL: userid attribute for the Login object */
,Login_password=tiger /* OPTIONAL: password attribute for the Login object */
,Login_Name=sasdemo Oracle login /* OPTIONAL: metadata name for the Login object */
);
Carl Sommer - SAS Technical Support
... View more