getGroupsByUserId

Syntax

getGroupsByUserId(userId)

Arguments

userId is a string indicating a user name.

Details

Return a STRING vector of the group names that the user belongs to. It can only be executed by an administrator.

Examples

getGroupsByUserId("admin")
// output
["MVP","MYMVP"]