Skip to main content
Connect Active Directory (AD) to Oleria to see who has access across your on-premises and hybrid AD environment. Oleria reads directory data through a lightweight agent you install on a domain-joined machine, using a service account. The account only needs read access unless you use remediation actions.

What Oleria discovers

  • Users and service accounts - AD user and inetOrgPerson objects, including accounts that hold admin rights through group membership.
  • Groups - security and distribution groups, with direct and nested membership.
  • Computers - computer objects and the groups and organizational units they belong to.
  • Organizational units and group policies - your OU structure, group policy objects, and the domain.
  • Activity - Windows security events, when you configure event forwarding.

Prerequisites

  • Admin access on the Oleria platform to add a new integration.
  • A domain-joined Windows server (ADDJ machine) to install the Oleria AD agent on.
  • Administrator permissions on that machine.
  • Permission in Active Directory to create a user and delegate permissions to it: read permissions for discovery, and the permissions in Remediation actions if you use them.

Agent host requirements

The Oleria AD agent runs on the domain-joined Windows server you choose. Make sure that server meets these requirements:
If you need to route the agent’s outbound traffic through a proxy, contact us at support@oleria.com before you install.

Create a service account in Active Directory

Create a dedicated service account for Oleria. Use a service account, not an employee account, so the integration keeps working if someone leaves. For discovery, the account needs read access to user, group, computer, organizational unit (OU), and Group Policy Object (GPO) objects, which a standard domain user has by default. If your domain restricts that default read access, Oleria discovers only the objects the account can still read. To use remediation actions, it also needs write access to the member attribute of the groups it manages, and permission to create, delete, and manage user accounts.
1

Create a new user

Sign in to Active Directory and create a new user, for example, Oleria Read Admin.Active Directory Users and Computers New Object - User dialog for the Oleria Read Admin account
2

Delegate control

Skip this step if you don’t use remediation actions and your domain keeps the default read permissions.Open your AD Domain and select Delegate Control.Active Directory domain context menu with Delegate ControlOn the Users or Groups page, select Add, add the service account you created, and select Next.Delegation of Control Wizard with the Oleria service account selectedOn the Tasks to Delegate page, choose Delegate the following common tasks. If your domain restricts read access to user objects, select these tasks, which grant read access to every property of user and inetOrgPerson objects:
  • Read all user information
  • Read all inetOrgPerson information Read all inetOrgPerson information
These common tasks cover only user and inetOrgPerson objects. If your domain also restricts read access to groups, computers, OUs, or GPOs, grant the account read access to those objects too, with Create a custom task to delegate in the same wizard. Otherwise Oleria skips the objects it can’t read.To use remediation actions, also select these tasks on the same page:
  • Create, delete, and manage user accounts, for Create user, Disable user accounts, and Enable user accounts
  • Modify the membership of a group, for Add user to group and Remove user from group
Delegated on your domain, Create, delete, and manage user accounts also lets the service account reset the password of any user except protected accounts such as domain admins. Select it only if you’ll use these actions.
3

Verify group membership

The account will be automatically added to the Domain Users group. Open the Domain Users group to verify the service account.Active Directory Domain Users group with service account listed as member

Configure event forwarding

Event forwarding is how Oleria gets activity for Active Directory. It forwards Windows security events from your domain controllers, so Oleria can show sign-in and account activity alongside the accounts it discovers. Without event forwarding, Oleria still discovers user accounts but shows no activity. To set it up, follow Microsoft’s guide to configure Windows event forwarding.

Connect Active Directory to Oleria

1

Open the integration

Sign in to your Oleria workspace and select Workspace -> Integrations -> Active Directory.
2

Name your agent

In Agent Name, enter a name for your agent and select Continue. The name can contain only letters, numbers, hyphens (-), and underscores (_).Oleria agent setup panel with the agent name field and Continue button
3

Copy the installation script

Oleria shows a PowerShell installation script. Copy it. You’ll run it on the domain-joined server where you want to install the Oleria AD agent.Oleria workspace showing PowerShell installation script with copy button

Install the Oleria AD agent

1

Run the installation script

Sign in to the ADDJ machine, open PowerShell as an administrator, and run the script you copied in the previous section.PowerShell terminal running Oleria AD Agent installation script
2

Accept the license terms

The Oleria AD agent installer opens. Accept the license terms and select Next.Accept the license terms and select Next
3

Provide the service account details

On the next page, provide the following:
  • Username - the name of the service account you created
  • Password - the service account’s password
  • DomainName - your domain in distinguished name format (for example, if your domain is example.local, enter dc=example,dc=local)
  • DomainUrl - the LDAP URL of your domain controller, including the scheme. For example, ldap://10.0.0.5 or ldap://dc01.example.local:389. Use ldaps:// with port 636 if your domain controller requires LDAPS.
Select Next and follow the prompts to complete the installation.Oleria AD agent installer wizard with the Next button
4

Confirm installation

When the installation completes, the OleriaADConnectAgent service appears in the Windows services list.Windows Services panel showing OleriaADConnectAgent service running

Verify the integration

In your Oleria workspace, go to Integrations -> Connected -> Active Directory and select View Details. The side panel shows the health status of the Oleria AD agent. Oleria Connected Integrations panel showing Active Directory agent health status

Remediation actions

Oleria can take the following actions in Active Directory. The Oleria AD agent runs each action with the service account.
The read-only permissions from the setup steps above aren’t enough for these actions. Grant the service account:
  • Write permission on the member attribute of the groups you want Oleria to change, for Add user to group and Remove user from group.
  • Create, delete, and manage user accounts on your domain, delegated with the Delegation of Control Wizard, for Create user, Disable user accounts, Enable user accounts, and their reverts.
  • Create user and Disable user accounts need the latest Oleria AD agent. With an older agent, Create user fails, and Disable user accounts doesn’t protect the service account. Its revert also can’t tell whether the account was already disabled, so it might enable an account that was disabled before, or fail. Enable user accounts also needs the latest agent. With an older agent, its revert can’t tell whether the account was already enabled, so it might disable an account that was enabled before, or fail. You can see the agent’s Version under Agent Health in View Details. Contact us at support@oleria.com to upgrade the agent before you use these actions.
  • Create user also needs an encrypted connection to your domain controller, because Active Directory only accepts a password over one. With an ldap:// DomainUrl, the agent uses StartTLS. With ldaps://, it uses LDAPS, and DomainUrl must use the domain controller’s hostname. Either way, the domain controller needs a TLS certificate for its hostname that the agent’s server trusts. Other actions and discovery don’t need it.
  • If a password breaks your domain’s password policy, Create user fails and Oleria deletes the new user. If that cleanup also fails, the action’s error says so, and you need to delete the user in Active Directory. If a user with the same name already exists, the action fails and changes nothing.
  • Create user doesn’t add the new user to groups. Use Add user to group after it runs.
  • Oleria won’t disable the service account the agent uses, because the agent could then no longer connect to Active Directory.
  • Accounts that belong, or used to belong, to protected groups such as Domain Admins don’t inherit delegated permissions (Active Directory resets their permissions from AdminSDHolder). Oleria can’t disable these accounts, or change protected groups, unless you grant the service account permissions on AdminSDHolder too. Most organizations handle these accounts manually instead.

Contact us

For questions about this integration, contact us at support@oleria.com.