BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Obsidian | Level 7

Hi all,


We have SAS Viya 3.4 deployed on Linux. In our AD we have 2 types( internal and external) of users which belong to different custom groups in SAS Viya.

We want to customize the default "User Activity" to see reports activity only for external users.


The way I am trying to achieve this is to get the list of all users in SAS Viya and name of custom groups they belong so in my report I could filter users by custom group name. Is this possible?




Barite | Level 11

If you wanted to do this in SAS you could use the macrocore library as follows:


/* get all users */

/* get all groups */

/* get users in a group */

/* get groups for a user */

A guide to setting up the access token is available here.  


Note - this only includes the users & groups that have been explicitly added to viya, ie - it's not necessarily the full list of users who can access the box.


SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs


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.


Register now!

Discussion stats
  • 2 replies
  • 2 in conversation