Bitrix Site Manager

CUser::GetUserGroupArray

array
CUser::GetUserGroupArray()

The method GetUserGroupArray returns the ID's of groups containing the current authorized user (usually called from the $USER object).

Parameters


No parameters.

See Also

Example



<?
// obtain an array of groups for current user
global $USER;
$arGroups = $USER->GetUserGroupArray();
echo "<pre>"; print_r($arGroups); echo "</pre>";
?>