Developer Function: Server Script: dept.GetMembers
## Overview
This method is used to get user information belonging to an organization in a "[Server Script](/en/manual/table-management-server-script)".
## Syntax
```
dept.GetMembers()
```
## Return Value
Return a list of "user objects".
## Usage Example
The following example outputs to the log the usernames of members of the department to which the logged-in user belongs.
##### JavaScript
```
let myDept = depts.Get(context.DeptId);
if (myDept) {
const members = myDept.GetMembers();
for (let member of members) {
context.Log(`Name: ${member.Name}`);
}
}
```
## 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="" />