BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BeNur
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?

 

Regards,

 

1 ACCEPTED SOLUTION
2 REPLIES 2
AllanBowe
Barite | Level 11

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

 

/* get all users */
%mv_getusers(outds=users)

/* get all groups */
%mv_getgroups(outds=groups)

/* get users in a group */
%mv_getgroupmembers(GROUPNAME,outds=users)

/* get groups for a user */
%mv_getusergroups(USERNAME,outds=groups)

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.

 

/Allan
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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 2 replies
  • 4705 views
  • 3 likes
  • 2 in conversation