SystemInfo.ADSystemInfo
-----------------------

Queries Active Directory information.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SystemInfo](component_SystemInfo.md) [LDAP](component_LDAP.md) | [9.3](newinversion93.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "SystemInfo.ADSystemInfo" { ; IncludeGroups } ) 

**MBS**( **"SystemInfo.ADSystemInfo";** /\* Queries Active Directory information. \*/  
**$IncludeGroups**) /\* Optional; Whether to query the groups, if available.  
Pass 1 to include groups. Default is 0 to not include them.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| IncludeGroups | Whether to query the groups, if available.   Pass 1 to include groups. Default is 0 to not include them. | 1 | Optional      Added in version **16.1**. |

### Result

Returns JSON or error.

### Description

Queries Active Directory information.  
This call may take a second if a query needs to be sent to server.  
Returns JSON with details including UserName, ComputerName, SiteName, DomainShortName, DomainDNSName, ForestDNSName, PDCRoleOwner, SchemaRoleOwner, IsNativeMode, DCNam and DCSiteName.  
The result is an empty JSON object in case of no Active Directory in use.  
  
Not useful on server as it would query the Active Directory information for the system user running FileMaker Server and not the information for the user calling the script via PSoS. So better use in FileMaker Pro only.  
### Examples

Query Active Directory details on Windows:

 MBS ( "SystemInfo.ADSystemInfo" )  
<small>  
Example result:   
{ "UserName" : "CN=John Doe,OU=2SH User,DC=2SXXX,DC=2S" , "ComputerName" : "CN=2SMBP16W10,CN=Computers,DC=2SXXX,DC=2S" , "SiteName" : "Default-First-Site-Name" , "DomainShortName" : "2SXXX" , "DomainDNSName" : "2SXXX.2S" , "ForestDNSName" : "2SXXX.2S" , "PDCRoleOwner" : "CN=NTDS Settings,CN=2SDCERP,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=2SXXX,DC=2S" , "SchemaRoleOwner" : "CN=NTDS Settings,CN=2SDCERP,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=2SXXX,DC=2S" , "IsNativeMode" : true, "DCName" : "2SDCSTORAGE.2SXXX.2S" , "DCSiteName" : "Default-First-Site-Name" } </small>### See also

- [LDAP.Bind](LDAPBind.md)
- [SystemInfo.LinuxSystemInfo](SystemInfoLinuxSystemInfo.md)
- [SystemInfo.SystemFont](SystemInfoSystemFont.md)

### Release notes

- **Version 16.1**
    - Added groups for [SystemInfo.ADSystemInfo](https://www.mbsplugins.eu/SystemInfoADSystemInfo.shtml) function.
- **Version 13.3**
    - Fixed an issue with [SystemInfo.ADSystemInfo](https://www.mbsplugins.eu/SystemInfoADSystemInfo.shtml) function reporting an error about not having initialized COM.
- **Version 9.3**
    - Added [SystemInfo.ADSystemInfo](http://www.mbsplugins.eu/SystemInfoADSystemInfo.shtml) function to query Active Directory details for current user.

### Blog Entries

- [Neues MBS Plugin 16.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-03-17/Neues_MBS_Plugin_161_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-03-17/MBS_FileMaker_Plugin_161_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr3](https://www.mbsplugins.de/archive/2026-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.3pr1](https://www.mbsplugins.de/archive/2023-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Neues vom MBS Plugin 9.3](https://www.mbsplugins.de/archive/2019-09-13/Neues_vom_MBS_Plugin_93/monkeybreadsoftware_blog_filemaker)
- [Whats new in MBS FileMaker Plugin version 9.3](https://www.mbsplugins.de/archive/2019-08-17/Whats_new_in_MBS_FileMaker_Plu/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 9.3 - Über 5900 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2019-07-24/Neues_MBS_FileMaker_Plugin_93_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 9.3 - More than 5900 Functions In One Plugin](https://www.mbsplugins.de/archive/2019-07-24/MBS_FileMaker_Plugin_93_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.3pr2](https://www.mbsplugins.de/archive/2019-06-12/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 4th June 2019 , last changed 13th February 2026

  
[System.Sleep](SystemSleep.md) - [SystemInfo.AppResourceUsageStatistics](SystemInfoAppResourceUsageStatistics.md)

[HTML Version](SystemInfoADSystemInfo.shtml)