Developer Function: Server Script: group.GetMembers
## Overview
Get a collection of "groupMember objects" from a "group object" in the "[Server Script](/en/manual/table-management-server-script)".
## Syntax
```
group.GetMembers()
```
## Return Value
Return a collection of "groupMember objects".
## Usage Example
The following example logs the department IDs and user IDs of the members belonging to the group with group ID 1.
##### JavaScript
```
let group = groups.Get(1);
for (let member of group.GetMembers()) {
context.Log(`${member.DeptId},${member.UserId}`);
}
```
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />