Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Generate CSV Organisational Chart Data From AD #6377
This PR is for a module which can be used to aid the generation of an organisational chart based on information contained in Active Directory. The module itself uses ADSI to retrieve key information from AD (manager, title, description etc) fields and then present it in a CSV file in the form:
The reports_to field is the only one which is generated; everything else is taken directly from AD. The 'manager' field contains the DN of the manager assigned to that user, and this module simply uses a regular expression to obtain the CN field of the manager.
This can then be imported into tools like Microsoft Visio (using the organisational chart wizard) and it will construct a visual org chart from the information there. Although visio supports the ability to generate Org charts if it is on a domain joined machine, but there does not seem to be a way of doing this remotely (e.g. during a red teaming exercise).
This should not be confused with security groups and AD managed groups; this is purely an internal organisational hierarchy representation but could be very useful for situational awareness or in order to construct a more plausible or targeted internal phishing exercise.
For the purposes of this contrived example, the module has been configured to generate the CSV reporting information for everyone with 'IT' somewhere in their common name.
The contents of the CSV file are shown below:
When this was imported into Visio with default options set, it produced the following organisational chart:
This can be extended in a number of ways, including:
Works for me. I'll port the doc now.