Active Directory Service Account
· 14 min read
This blog provides a step-by-step guide to creating and assigning permissions to a service account in Active Directory, with a focus on integrating RSA Governance & Lifecycle (RSA G&L). It outlines the process to ensure the service account has the necessary permissions to securely read and write data into AD.
Create the Service Account
- Open Active Directory Users and Computers (ADUC).
- Navigate to the Organizational Unit (OU) where you want to create the service account.
- Right-click on the OU and select New > User.
- Fill in the following details:
- First Name: Enter a name for the service account (e.g., "Service").
- Last Name: Enter a last name for the service account (e.g., "Account").
- User Logon Name: Specify a unique logon name (e.g.,
svc_account
).
- Click Next.
- Set a strong password for the service account and configure the following options as needed:
- Check Password never expires if required for long-term use.
- Uncheck User must change password at next logon.
- Click Next, then click Finish to create the service account.
Grant Permissions
Grant Read/Write Permissions on Base DN
- Open Active Directory Users and Computers (ADUC).
- Navigate to the OU or domain where you want to assign permissions (e.g.,
dc=example,dc=com
or an OU likeUsers
). - Right-click on the target OU or domain and select Properties.
- If the Security tab is not visible, enable it by clicking View > Advanced Features in ADUC.
- Go to the Security tab.
- Click Add, enter the name of your service account, and click OK.
- In the "Permissions" section:
- Check Read and Write permissions for objects you want the service account to manage.
- For more granular control, click Advanced:
- Select your service account from the list and click Edit.
- Specify permissions for specific object types (e.g., users, groups):
- Allow:
Read all properties
,Write all properties
. - Allow:
Create user objects
,Delete user objects
. - Allow:
Add/remove members from groups
.
- Allow:
Delegate Control (Alternative Method)
- Right-click on the OU or domain where you want to delegate control.
- Select Delegate Control from the context menu.
- In the Delegation of Control Wizard:
- Click Next, then add your service account.
- Choose tasks like:
- Create, delete, and manage user accounts.
- Modify membership of a group.
- Read all user information.
- Complete the wizard to assign delegated permissions.