Developer Function: Server Script: group.GetMembers
## Overview
Get a collection of "groupMember objects" from a "group object" in the "「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">
<article class="s-blog_list_unit"><h2>
<h2>The specified information was not found.</h2>
<p><a href="/ja/manual">Return to top</a></p>
</article>
</div><input id="SearchTextHidden" type="hidden" value="" />