Developer Function: Server Script: group.ContainsDept
## Overview
Determine whether the "group object" in the "「Server Script」" contains the specified "「Depts」".
## Syntax
```
group.ContainsDept(deptId)
```
## Return Value
If the specified "「Depts」" is included, it returns true.; if not, it returns false.
## Usage Example
The following example checks whether the "「Group」" with group ID 1 contains the "「Dept」" of the logged-in user.
##### JavaScript
```
let group = groups.Get(1);
if (group.ContainsDept(context.DeptId)) {
context.Log('contains');
} else {
context.Log('not contains');
}
```
## 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="" />