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