![]() |
Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
|
Creates a dataset with a list of users. More...
Go to the source code of this file.
First, be sure you have an access token (which requires an app token).
Using the macros here:
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc;
An administrator needs to set you up with an access code:
%mv_registerclient(outds=client)
Navigate to the url from the log (opting in to the groups) and paste the access code below:
%mv_tokenauth(inds=client,code=wKDZYTEPK6)
Now we can run the macro!
%mv_getusers(outds=users)
Output (lengths are dynamic):
ordinal_root num, ordinal_items num, version num, id char(20), name char(23), providerId char(4), type char(4), creationTimeStamp char(24), modifiedTimeStamp char(24), state char(6)
access_token_var= | The global macro variable to contain the access token |
grant_type= | valid values: password authorization_code detect - will check if access_token exists, if not will use sas_services if a SASStudioV session else authorization_code. Default option. sas_services - will use oauth_bearer=sas_services |
outds= | The library.dataset to be created that contains the list of groups |
Definition in file mv_getusers.sas.