Bitrix Site Manager

CUser::GetUserGroup

array
CUser::GetUserGroup(
 int id
)

The method GetUserGroup returns an array of ID's of groups containing the user with the id.

Parameters

Parameter Description
id User ID.

See Also

Example



<?
// obtain array of groups for user with ID=12
$arGroups = CUser::GetUserGroup(12);
echo "<pre>"; print_r($arGroups); echo "</pre>";
?>