Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
ms_adduser2group.sas File Reference

Adds a user to a group on SASjs Server. More...

Go to the source code of this file.

Detailed Description

Adds a user to a group based on userid and groupid. Both user and group must already exist.

Examples:

%ms_adduser2group(uid=1,gid=1)
Parameters
[in]uid=(0) The User ID to be added
[in]gid=(0) The Group ID to contain the new user
[in]mdebug=(0) Set to 1 to enable DEBUG messages
[out]outds=(work.ms_adduser2group) This output dataset will contain the new list of group members, eg:
DISPLAYNAME:$18. USERNAME:$10. 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_adduser2group.sas.