dc_getusergroups.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Gets all groups
4  @details There are two versions of this macro - a META and a VIYA version (in
5  different folders). The interfaces is the same. This version is VIYA.
6 
7  Returns the group memberships of a particular user.
8 
9  <h4> SAS Macros </h4>
10  @li mv_getusergroups.sas
11 
12  @version 3.5
13  @author 4GL Apps Ltd
14  @copyright 4GL Apps Ltd. This code may only be used within Data Controller
15  and may not be re-distributed or re-sold without the express permission of
16  4GL Apps Ltd.
17 **/
18 
19 %macro dc_getusergroups(user=,outds=mm_getgroups);
20  %mv_getusergroups(&user,outds=&outds)
21  data &outds;
22  length groupname groupdesc $256;
23  set &outds(rename=(id=groupname name=groupdesc));
24  run;
25 %mend dc_getusergroups;