Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
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
[in]userThe username for which to return the list of groups
[in]access_token_var=(ACCESS_TOKEN) The global macro variable to contain the access token
[in]grant_type=(sas_services) Valid values are "password" or "authorization_code" (unquoted).
[out]outds=(work.mv_getusergroups) 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

SAS Macros

Definition in file mv_getusergroups.sas.