Loading...
Searching...
No Matches
dc_getusergroups.sas File Reference

Gets the groups a user belongs to. More...

Go to the source code of this file.

Detailed Description

There are three versions of this macro - a META, a VIYA and a SERVER version (in different folders). The arguments are the same; the output columns are whatever that platform's own group listing returns. This version is VIYA.

Returns the group memberships of a particular user, defaulting to the session user when none is named - mv_getusergroups passes a blank user straight through to a membership URL with no user in it, which answers no rows.

mv_getusergroups answers the identities API's id / name / providerId, and this version renames two of them: GROUPNAME carries the identity id, which is the value the Viya sas_group column offers as its raw values, and GROUPDESC carries the display name. The rest of the response reaches &outds as it arrived - providerId, plus the ordinal and implicit columns the JSON libname adds. There is no GROUPURI here: on Viya the group screen reads /identities/groups itself and never opens a group by this member.

SAS Macros

Parameters
[in]user=The user to read group memberships for (default: the session user)
[out]outds=(mm_getgroups) the membership dataset: GROUPNAME (the id) and GROUPDESC (the name), plus providerId and the ordinal / implicit columns that mv_getusergroups returns
Version
3.6
Author
4GL Apps Ltd

Definition in file dc_getusergroups.sas.