Documentation

GetUserGroupList

CUser::GetUserGroupList(
   $ID
) 

The method returns the CDBResult class object (group joining date are not considered). Static method.

Parameters

Parameter Description
IDUser ID

Returned value

Returns a group array and user membership period for the specific group:

  • GROUP_IDGroup ID
  • DATE_ACTIVE_FROMActivity start date
  • DATE_ACTIVE_TOActivity finish date

Examples of use

$res = CUser::GetUserGroupList(1);
while ($arGroup = $res->Fetch()){
   print "<pre>"; print_r($arGroup); print "</pre>";
}


© «Bitrix24», 2001-2024