Hello,
Does anyone know if is it possible to list all users and their last login time?
Also how to list when the last changes were made to all groups-add\remove users, and a description of what exactly was done?
Thanks!
If you have not enabled the SAS Service Architecture to use it's built in report, you could use this program I wrote:
https://github.com/sascommunities/technical-support-code/blob/main/usage/administration/metadata_ser...
It does not read in information about group or user modifications.
You'll have to elaborate on the scenario! Users of what? Base SAS, the SAS metadata server, SAS BI web clients, SAS Viya GUI-users, users that consume SAS via APIs?
Provide as much details as possible so we don't have to guess.
Hi,
Users are connecting to SAS Enterprise Guide and SAS Miner, so I guess users are connecting to SAS metadata server.
The Metadata server is on Windows.
Feel free to ask additional questions if something is unclear.
Thanks in advance
AFAIK there's nothing working Out o the Box. For a similar audit activity, I put together some code to get users list, creation and last update dates from Metadata, and parse the Metadata server logs to get the last access timestamp.
Never gone farther with groups.
Hi Marco,
Could you please share this code here in chat?
I couldn't find it in the link you post.
Thanks in advance
I'm not sure I agree with your statement "AFAIK there's nothing working Out o the Box" here!
You'll need to put it in the correct context! It would be true if you are talking about SAS Base/SAS Foundation.
Otherwise if you are talking about the SAS Enterprise Business Intelligence platform (EBI), SAS Institute has added this sort of functionality back in SAS 9.4 M2 (Aug 2014) SAS Environment Manager Service Architecture Framework , and provided Report Center with SAS 9.4 M3 (Jul 2015) "Report Center: SAS SysAdmin's secret weapon"
@Srdjan Double check with your SAS Administrator the version and bundle of your SAS Deployment to see if the SAS Environment Manager is part of your Licensed SAS Software.
Here is a video link on how to use the Report Center: Using the SAS Environment Manager Report Center to Explore Auditing Data
Hope this helps,
Ahmed
One more link from 2016 to look into
Opening Up the SAS Environment Manager Report Center
Hi Ahmed,
Thanks for your suggestion.
Unfortunately, I would say we don't have the Report Center configured.
Is there any other way to get the required data?
Kind regards
Open this page SAS Environment Manager Service Architecture Framework
Scroll down till you see this section
Select the link that matches your SAS deployment, and go through the initialization steps
Thank you very much Ahmed,
We will definitely try to set up the Report Center.
For now I'm good with the code that @gwootton posted on the github.
Kind regards
You need to process the logs of the metadata server. Parsing those logs can be done with sas - not to difficult. Or with any other scripting language.
Hi Andreas,
Could you please give me some examples of how to process the logs of the metadata server?
Thanks in advance
If you have not enabled the SAS Service Architecture to use it's built in report, you could use this program I wrote:
https://github.com/sascommunities/technical-support-code/blob/main/usage/administration/metadata_ser...
It does not read in information about group or user modifications.
Thank you gwootton,
This is what I needed.
I will try another way to find information about group or user modifications.
Kind regards
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.