General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetAnonymousUserID
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
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-2024
Up