Documentation

GetUserGroupArray

array
CUser::GetUserGroupArray()

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

Parameters

No parameters.

Note. The date is saved within session. To obtain the modified data, re-authorization at the site is required.

See Also

Examples of use

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


© «Bitrix24», 2001-2022
Up