Developer Function: Server Script: groupMember
## Overview
This object is used to read the information of "group members" available in the "[Server Script](/en/manual/table-management-server-script)". The GetMembers method of the "group object" gets a collection of "groupMember objects". If the member is a "[Dept](/en/manual/table-management-choices-text-depts)", the department ID is stored in DeptId and 0 in UserId. If the member is a "[User](/en/manual/table-management-choices-text-users)", the user ID is stored in UserId and 0 in DeptId.
## Properties
|No|Property name|get|set|type|Description|
|:----|:----|:----|:----|:----|:----|
|1|GroupId|Yes|No|int|Group ID|
|2|DeptId|Yes|No|int|Department ID|
|3|UserId|Yes|No|int|User ID|
## Usage Example
In the following example, the department ID and user ID of members belonging to group ID 1 are output to the log.
##### 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-choices-text-depts">Table Management: Editor: Item Detail Settings: Option List: Departments</a><span>08.13.2024 up</span></li>
<li><a href="/en/manual/table-management-choices-text-users">Table Management: Editor: Item Detail Settings: Option List: User</a><span>08.13.2024 up</span></li></ul></article>
<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="" />