|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Creates a dataset with a list of groups for a particular user. More...
Go to the source code of this file.
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)
| [in] | user | The 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 |
Definition in file mv_getusergroups.sas.