AD Connector

Modified on Fri, 9 Jan at 9:28 AM

TABLE OF CONTENTS



Introduction

The Active Directory (AD) connector in ManagementStudio is used to import data from Active Directory. The AD connector includes several configurable panels:

  • AD Discovery Status
  • Import User Options
  • User Update Options
  • Import Machine Options
  • Machine Update Options
  • Application Update Options
  • Troubleshooting

An administrator can toggle each panel on or off as required.


AD Discovery Status

The following table describes the elements in the AD Discovery Status panel:


UI ElementDescription
Run AD Discovery NowButton to initiate AD Discovery immediately.
Schedule AD Discovery #1Specify times for scheduled AD Discovery. See the scheduled task article for details.
Schedule AD Discovery #2Additional schedule for AD Discovery. See the same scheduled task article for details.
Last Discovery DateDisplays the last successful AD Discovery run date and time.
DomainNETBIOS name of the domain, e.g., GLOBAL. To find it, run set userdomain in Command Prompt. Use the value from the USERDOMAIN variable.
Distinguished NameDistinguished name of the domain, e.g., DC=Global,DC=COM.
Emails Logs ToComma-separated list of email addresses to receive sync logs. Use semicolons for multiple recipients (e.g., t@blogg.com;Accounts@blogg.com).
Overall ProgressDisplays overall progress of the import operation.
Current Task ProgressIndicates progress of the current import task.
Import LogText field displaying AD import logs.





Import User Options

Description of elements within the Import User Options panel:


UI ElementDescription
User Last Login < X DaysImports only users that logged in within the last X days. Use 0 to import all users.
Exclude Disabled User AccountsPrevents import of disabled AD user accounts (recommended enabled).
Import User Accounts from Sub-DomainsImports user accounts from Sub-Domains (requires separate connector for each sub-domain).
Import User Accounts from Foreign DomainsImports user accounts from foreign domains (requires separate connector for each).
Users to ExamineSpecify OU or group using distinguished name. Example:
Type: OU
DN: OU=Users,OU=Lab,DC=ms,DC=Local
Options: Nested Members, Direct Members, Exclude Members
Exclude User AccountsExplicitly exclude specified users. Use wildcards (e.g., *SRV*, *Service accounts*).





User Update Options

Elements in the User Update Options panel:


UI ElementDescription
Don't Update Locked UsersSkips updating ManagementStudio user records that are locked (not linked to AD lock status).
Import User OU Path as BlueprintConverts user OU to Blueprints (e.g., AD Info\Computer\UK).
If User Blueprint is BlankChoose action if department is blank: skip, use AD Info\Name, or AD Info\<blank>\Name
Start User Blueprint Folder PathPrefix Blueprint mappings with this root path (e.g., AD Info\).
User Field MappingsMap AD attributes to ManagementStudio fields.

- Target: Field in ManagementStudio (detail, custom, or blueprint field)
- MS Field: ManagementStudio field name/path
- AD Field: AD user attribute (see user AD attributes or calculated User Fields)





Import Machine Options

Description of Import Machine Options panel:


UI ElementDescription
Machine Last Login < X DaysOnly imports machines that have logged in within the last X days. Use 0 to import all machines.
Exclude Disabled Machine AccountsExcludes disabled machines from import.
Machines to ExamineSpecify OU or group for machines using DN (e.g., OU=Computers,OU=Lab,DC=ms,DC=Local); type: OU or Group. Options: Nested Members, Direct Members, Exclude Members
Exclude Machine AccountsExplicitly exclude specified machines. Use wildcards (e.g., *SRV*, *Printers*).




Machine Update Options

Elements in the Machine Update Options panel:


UI ElementDescription
Don't Update Locked MachinesSkips updating ManagementStudio machine records that are locked (not linked to AD lock status).
Import Machine OU Path as BlueprintConverts machine OU to Blueprint (e.g., AD Info\Computer\UK).
If Machine Blueprint is BlankOn blank department, skip or use AD Info\Name or AD Info\<blank>\Name.
Start Machine Blueprint Folder PathPrefix Blueprint mappings with this root path (e.g., AD Info\).
Machine Field MappingsMap AD attributes to ManagementStudio machine fields.

- Target: ManagementStudio field
- MS Field: Field name/path
- AD Field: AD machine attribute (computer AD attributes or calculated Computer Fields).




Application Update Options

Elements in the Application Update Options panel:


UI ElementDescription
Link Users to Apps via AD GroupsLink: Adds user-app association if user exists in ManagementStudio. Remove: Unlinks app if user removed from AD group.
User Name FormatDisplays format for imported users from AD group.
Link Devices to Apps via AD GroupsLink: Adds device-app association if device exists. Remove: Unlinks app if device removed from AD group.
Device Name FormatDisplays format for imported devices from AD group.
Recurse Nested App GroupsSearches nested AD sub-groups for users/devices; can be resource-intensive.
Exclude by Process StatusExclude apps from update/link if specific process status is not required.
Import Application OU Path as BlueprintConverts app to blueprint, e.g., AD Info\User\UK\Front Office.
If App Blueprint is BlankIf department is blank, skip or use AD Info\Name or AD Info,<blank>,Name.
Starting App Blueprint Folder PathPrefix for Blueprint mappings (e.g., AD Info\).




Connection Options

Elements in the Connection Options table:


UI ElementDescription
Integrated SecurityDefault is enabled. If Use MS Server Account is selected, ManagementStudio uses the IIS App Pool account to connect to AD.
AD Account Username
AD Account Password
Optional: Untick Use MS Server Account to enter credentials for AD authentication.
Domain Controller HostnameOptional: Specify the domain controller for connection.
LDAP PortOptional: If blank, uses port 389 (default). Specify port 636 for secure LDAP if required.
Global Catalog PortOptional: If Domain Controller Hostname is set, specify a custom global catalog port if needed.




Troubleshooting

Elements in the Troubleshooting panel:


UI ElementDescription
NotesFree-text field for environment or project information.
Online HelpLink to ManagementStudio's online solutions article.
Verbose LoggingEnables detailed logging; generates large files and should be used only for troubleshooting.
Anonymise DataAnonymised data will only import bare minimum data to be able to create User-App-Device links. The SamAccount/Device name will be scrambled.






Adding a New AD Connector

Overview

This section describes how to add a new Active Directory connector in ManagementStudio.

Connecting to Active Directory

Before creating an AD connector, ensure you have:

  • Appropriate permissions on the domain.
  • Required data source information (domain name, credentials, etc).

Creating a New AD Connector

  • Navigate to Administration → Extensions → Connectors (1).
  • Click Add New Connectors (2).
  • Select the connector type [AD-Domain](3).



  • Enter the name of the AD Domain (1).
  • Click OK to create the AD connector (2).




  • The new connector appears in the left navigation.
  • Ensure the toggle next to AD Discovery Status is on.
  • Populate the following fields (1):
    • Domain
    • Distinguished Name
  • Click Save Changes (2).
  • Click Run AD Discovery Now (3).
  • Confirm when prompted to run AD Discovery.


On completion:

  • You will receive a notification when the connection is established.
  • Use the Import Log field to review import activity (4).
  • Review the Last Discovery Date for confirmation of the last successful run (5).


At this stage, you may configure import settings for users, devices, and applications as required.

Scheduling the Connector



  • Go to Administration → Scheduled Tasks Manager (1).
  • Click Click here to add new item, name the task, set the schedule times and days (2).
  • Click Save Changes (3).



  • Return to Administration → Extensions → Connectors (1).
  • Select the AD tab (2).
  • In the Schedule AD Discovery #1 dropdown, select the newly created schedule task (3).
  • Click Save Changes (4).




ManagementStudio AD Calculated Fields

ManagementStudio provides a set of calculated fields for AD user and device imports.

Users

FieldDescription
MS_UserSIDUser SID converted from binary to string.
Email Related
MS_EmailFromProxyAddressesEmail derived from proxyAddresses attribute.
MS_CloudHostedEmailReturns Yes/No based on the targetAddress AD attribute.
Distinguished Name
MS_DistinguishedNamePathDCDistinguished name path including domain.
MS_DistinguishedNamePathDistinguished name path excluding domain.
Member Of
MS_MemberOfNameGroup names user is a member of.
MS_MemberOfPathCNGroup paths including Common Name (CN), excluding domain.
MS_MemberOfPathDCCNGroup paths including Domain and CN.
Current Connector
MS_ConnNameName of the current AD tab.
Direct Reports
MS_DirectReportsSamDirect reports' samAccountName values.
MS_DirectReportsFNDirect reports' full names.
MS_DirectReportsFNSamDirect reports' full names and samAccountName values.
Password Expires
MS_PasswordNeverExpiresYNYes/No if password never expires.
MS_PasswordNeverExpiresTFTrue/False if password never expires.
Account Enabled
MS_AccountEnabledYNYes/No if account is enabled.
MS_AccountEnabledEDEnabled/Disabled state.
MS_AccountEnabledTFTrue/False if account is enabled.
Manager Details
MS_ManagerFNManager's full name.
MS_ManagerFNSamAccountManager's full name and samAccountName.
MS_ManagerSamAccountManager's samAccountName.
MS_ManagerDetails_UPNManager's User Principal Name.
MS_ManagerDetails_FirstNameManager's first name.
MS_ManagerDetails_SurnameManager's surname.
MS_ManagerDetails_EmailManager's email address.
MS_ManagerEmailDetailsManager’s first name, surname, and email.



Devices

FieldDescription
MS_MachineSIDDevice SID converted from binary to string.
Account Enabled
MS_AccountEnabledYNYes/No if device account is enabled.
MS_AccountEnabledTFTrue/False if device account is enabled.
MS_AccountEnabledEDEnabled/Disabled state of the device account.
Distinguished Name
MS_DistinguishedNamePathDCDistinguished name path including domain.
MS_DistinguishedNamePathDistinguished name path excluding domain.
Member Of
MS_MemberOfPathDCCNGroup paths including domain and CN.
MS_MemberOfPathCNGroup paths including CN, excluding domain.
MS_MemberOfNameGroup names device is a member of.




Further Support

For additional assistance, visit the ManagementStudio Service Desk to search the knowledge base or raise a support ticket.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article