listUserGroups()

Overview

public array function listUserGroups(
      required string  userId         
    ,          boolean includeCatchAll = true
)

Returns an array of user group IDs that the user is a member of

Arguments

NameTypeRequiredDescription
userIdstringYesID of the user whose groups we wish to get
includeCatchAllbooleanNo (default=true)Whether or not to include the 'catch all' group