Hello Friends,
Can any one please help me with below request.
Is there any sas program which Notifies us when the sas internal account password expires if we set the
the password expiry to limited time in Metadata.
your help would be greatly appreciated.
Thanks in advance
There is nothing OOTB as far as I know but you can always query SAS metadata and implement your own process.
Below SAS sample code which should give you a start.
data metaUsers;
length metaUser $20;
input metaUser:$20.;
datalines;
sasdemo
sastrust
;
run;
options metaserver="*****"
metaport=8561
metauser="sasadm@saspw"
metapass="*****"
metarepository="Foundation";
data sample(drop=_:);
set metaUsers;
length uri $256 AccountExpirationDate $26 UseStdExpirationDays $1;
_rc1=metadata_getnasn("omsobj:Person?@Name='"||strip(metaUser)||"'",
"InternalLoginInfo",
1,
uri);
if (_rc1>0) then
do;
_rc2=metadata_getattr(uri,"AccountExpirationDate",AccountExpirationDate);
_rc2=metadata_getattr(uri,"UseStdExpirationDays",UseStdExpirationDays);
end;
run;
Using above code run as a daily job you then could compare the result with the current system date and send out alerts based on some criteria (i.e. expiration within the next 5 working days).
Be careful with SAS Managed accounts and follow the guidelines of how to change passwords there.
I would also exclude at least one admin account like sasadm@saspw from any expiration and lockout policies to never ever loose admin access.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.