Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mv_getusergroups.sas File Reference

Creates a dataset with a list of groups for a particular user. More...

Go to the source code of this file.

Detailed Description

If using outside of Viya SPRE, then an access token is needed.

Compile the macros here:

filename mc url
  "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;

Then run the macro!

%mv_getusergroups(&sysuserid,outds=users)
Parameters
access_token_var=The global macro variable to contain the access token
grant_type=valid values are "password" or "authorization_code" (unquoted). The default is authorization_code.
outds=The library.dataset to be created that contains the list of groups
Version
VIYA V.03.04
Author
Allan Bowe @source https://github.com/sasjs/core

Dependencies

Definition in file mv_getusergroups.sas.