Skip to main content

OrgChart Help Guide

Active Directory Attributes Tool

Audience

Audience: Administrators

Overview

The Active Directory Agent comes with a tool to retrieve attributes on individual users. You can use the below tools to find what attributes hold what data.

Retrieve All Attributes for a User

  1. Launch Windows PowerShell

  2. Use the "cd" command to navigate to the AD Agent folder

  3. Type "python ad_attributes.py -u 'xxx' -a all" and hit Enter (xxx is the individual username you wish to use)

  4. A list of every available attribute will be outputted into Windows PowerShell

Retrieve a Specific Attribute for a User

  1. Launch Windows PowerShell

  2. Use the "cd" command to navigate to the AD Agent folder

  3. Type "python ad_attributes.py -u 'xxx' -a 'yyy" and hit Enter (xxx is the individual username you wish to use and yyy is the name of the attribute you wish to query)

  4. The attribute's value will be output into Windows PowerShell

Retrieve All Attributes for a File

  1. Launch Windows PowerShell

  2. Use the "cd' command to navigate to the AD Agent folder

  3. Type "python ad_attributes.py -u xxx -a all > yyy.txt" and hit Enter (xxx is the individual username you wish to use and yyy is the name of the file you wish to create)

  4. The file will be located in your AD Agent folder