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

Fetches the list of users from SASjs Server. More...

Go to the source code of this file.

Detailed Description

Fetches the list of users from SASjs Server and writes them to an output dataset. Can also be filtered, for a particular group.

Example:

%ms_getusers(outds=userlist)

Filtering for a group by group name:

%ms_getusers(outds=work.groupmembers, group=GROUPNAME)

Filtering for a group by group id:

%ms_getusers(outds=work.groupmembers, gid=1)
Parameters
[in]mdebug=(0) Set to 1 to enable DEBUG messages
[in]group=(0) Set to a group name to filter members for that group
[in]gid=(0) Set to a group id to filter members for that group
[out]outds=(work.ms_getusers) This output dataset will contain the list of user accounts. Format:
DISPLAYNAME:$60. USERNAME:$30. ID:best.
Super Admin secretuser 1
Sabir Hassan sabir 2
Mihajlo Medjedovic mihajlo 3
Ivor Townsend ivor 4
New User newuser 5

SAS Macros

Related Files

Definition in file ms_getusers.sas.