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
GetUserGroupList
CUser::GetUserGroupList( $ID )
The method returns the CDBResult class object (group joining date are not considered). Static method.
Parameters
Parameter | Description |
---|---|
ID | User 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
Up