mv_getusers.sas File Reference

Creates a dataset with a list of users. More...

Go to the source code of this file.

Detailed Description

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)
Parameters
[in]access_token_var=(ACCESS_TOKEN) The global macro variable to contain the access token
[in]grant_type=(sas_services) 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. sas_services - will use oauth_bearer=sas_services
[out]outds=(work.mv_getusers) 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_getusers.sas.