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

Creates dataset with all groups or just those for a particular user. More...

Go to the source code of this file.

Detailed Description

Provide a metadata user to get groups for just that user, or leave blank to return all groups. Usage:

  • all groups mm_getGroups()
  • all groups for a particular user mm_getgroups(user=&sysuserid)
Parameters
user=the metadata user to return groups for. Leave blank for all groups.
outds=the dataset to create that contains the list of groups
repo=the metadata repository that contains the user/group information
mDebug=set to 1 to show debug messages in the log
Returns
outds dataset containing all groups in a column named "metagroup"
  • groupuri
  • groupname
  • groupdesc
Version
9.2
Author
Allan Bowe

Definition in file mm_getgroups.sas.