Skip to main content

Active Directory - Users With Domain Admin

Summary​

Lists every user account with Domain Admin rights for each client, including accounts that get the rights through nested groups. Use it to review who can administer each domain and to find disabled, stale or never-used admin accounts. The Active Directory - Users with Domain Admin Audit automation collects the data on each primary domain controller.

Requirements​

note

The Knowledge Base articles need the NinjaOne Documentation app enabled in NinjaOne, as shown below. If your NinjaOne does not have it, set Report Output to Local CSV Files in the report automation. The report then creates only the CSV files, on the device that runs it.

NinjaOne Documentation app enabled

Where to Find the Report​

ReportKnowledge Base ArticleCSV File
GlobalGlobal Knowledge Base > Dataviews > Active Directory > Active Directory - Users With Domain AdminC:\ProgramData\_Automation\Report\Active Directory\Active Directory - Users With Domain Admin.csv
OrganizationOrganization Knowledge Base > Dataviews > Active Directory > Active Directory - Users With Domain AdminC:\ProgramData\_Automation\Report\Active Directory\Organization_Level_Reports\Active Directory - Users With Domain Admin_<Organization>.csv
note

The articles and CSV files are replaced every time the report runs. CSV files are saved on the device that runs the report automation. An article that grows too large is split into - Part 1, - Part 2 and so on. Only primary domain controllers appear in this report.

Report Columns​

Column NameAppears InDescription
OrganizationGlobal onlyThe organization the device belongs to.
LocationBothThe location the device belongs to.
DeviceBothThe device name.
AccountNameBothThe sign-in name of the account.
DomainAdminBothAlways Yes. Every listed account has Domain Admin rights.
DomainBothThe name of the Active Directory domain.
NameBothThe display name of the account.
EmailBothThe email address of the account.
AccountEnabledBothEnabled or Disabled.
AccountExpirationBothThe date the account expires, or No Expiration.
LastLogonBothThe most recent sign-in, or Never.
DaysSinceLastLogonBothDays since the last sign-in. Blank when the account never signed in.
PasswordExpiresBothNever Expires, Must Change at Next Logon, Expires: <date> or Expired: <date>.
PasswordLastSetBothThe date the password was last changed, or Never.
DaysSinceLastPasswordChangeBothDays since the password was last changed.
DataCollectionDateBothWhen the domain controller collected the data.

Report Settings​

Values used in the WYSIWYG Custom Field Report - Organization and Global KB automation to build this report.

Script VariableValue
Report OutputKnowledge Base Articles and Local CSV Files
Custom Field NamecpvalDomainAdminUsers
Report ScopeAll Organizations and Global
Organization KB Article NameActive Directory - Users With Domain Admin
Organization KB Folder NameDataviews/Active Directory
Organization Additional ColumnsLocation, Device
Global KB Article NameActive Directory - Users With Domain Admin
Global KB Folder NameDataviews/Active Directory
Global Additional ColumnsOrganization, Location, Device
Local Folder NameActive Directory
Local File NameActive Directory - Users With Domain Admin
Device CategoryAll
MultipartTrue
Instance UrlThe NinjaOne instance of the partner, for example us2.ninjarmm.com

Report Settings

Dependencies​

Global Article Sample Screenshot​

Global Article

Organization Article Sample Screenshot​

Organization Article

CSV Folder Sample Screenshot​

The global CSV file, and the Organization_Level_Reports folder with one CSV file per organization.

CSV Folder

Changelog​

2026-10-14​

  • Initial version of the document