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

Adds a user to a group. More...

Go to the source code of this file.

Detailed Description

Adds a user to a metadata group. The macro first checks whether the user is in that group, and if not, the user is added.

Usage:

%mm_adduser2group(user=sasdemo
  ,group=someGroup)
Parameters
user=the user name (not displayname)
group=the group to which to add the user
mdebug=set to 1 to show debug info in log
Warning
the macro does not check inherited group memberships - it looks at direct members only
Version
9.3
Author
Allan Bowe

Definition in file mm_adduser2group.sas.