Skip to content

Commit 39dcba9

Browse files
authored
Update service-accounts-user-on-premises.md
1 parent 540de76 commit 39dcba9

File tree

1 file changed

+27
-33
lines changed

1 file changed

+27
-33
lines changed

articles/active-directory/fundamentals/service-accounts-user-on-premises.md

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,86 +17,80 @@ ms.collection: M365-identity-device-management
1717

1818
# Secure user-based service accounts in Active Directory
1919

20-
Using on-premises user accounts is the traditional approach to helping secure services that run on Windows. Use these accounts as a last resort when group managed service accounts (gMSAs) and standalone managed service accounts (sMSAs) aren't supported by your service. For information about selecting the best type of account to use, see [Introduction to on-premises service accounts](service-accounts-on-premises.md).
20+
On-premises user accounts was the traditional approach to help secure services running on Windows. Today, use these accounts if group managed service accounts (gMSAs) and standalone managed service accounts (sMSAs) aren't supported by your service. For information about the account type to use, see [Securing on-premises service accounts](service-accounts-on-premises.md).
2121

22-
You might also want to investigate whether you can move your service to use an Azure service account such as a managed identity or a service principal.
22+
You can investigate moving your service an Azure service account, such as a managed identity or a service principal. See, [What are managed identities for Azure resources?](../managed-identities-azure-resources/overview.md)
2323

24-
You can create on-premises user accounts to provide a security context for the services and permissions that the accounts require to access local and network resources. On-premises user accounts require manual password management, much like any other Active Directory user account. Service and domain administrators are required to observe strong password management processes to help keep these accounts secure.
24+
You can create on-premises user accounts to provide security for services and permissions the accounts use to access local and network resources. On-premises user accounts require manual password management, like other Active Directory (AD) user accounts. Service and domain administrators are required to maintain strong password management processes to help keep accounts secure.
2525

26-
When you create a user account as a service account, use it for a single service only. Name it in a way that makes it clear that it's a service account and which service it's for.
26+
When you create a user account as a service account, use it for one service. Use a naming convention that clarifies it's a service account, and the service it's related to.
2727

2828
## Benefits and challenges
2929

30-
On-premises user accounts can provide significant benefits. They're the most versatile account type for use with services. User accounts used as service accounts can be controlled by all the policies that govern normal user accounts. But you should use them only if you can't use an MSA. Also evaluate whether a computer account is a better option.
30+
On-premises user accounts are a versatile account type. User accounts used as service accounts are controlled by policies governing user accounts. Use them if you can't use an MSA. Evaluate whether a computer account is a better option.
3131

32-
The challenges associated with the use of on-premises user accounts are summarized in the following table:
32+
The challenges of on-premises user accounts are summarized in the following table:
3333

3434
| Challenge | Mitigation |
3535
| - | - |
36-
| Password management is a manual process that can lead to weaker security and service downtime.| <li>Make sure that password complexity and password changes are governed by a robust process that ensures regular updates with strong passwords.<li>Coordinate password changes with a password update on the service, which will help reduce service downtime. |
37-
| Identifying on-premises user accounts that are acting as service accounts can be difficult. | <li>Document and maintain records of service accounts that are deployed in your environment.<li>Track the account name and the resources to which they're assigned access.<li>Consider adding a prefix of "svc-" to all user accounts that are used as service accounts. |
38-
| | |
39-
36+
| Password management is manual and leads to weaker security and service downtime| - Ensure regular password complexity and changes are governed by a process that maintains strong passwords</br> - Coordinate password changes with a service password, which helps reduce service downtime|
37+
| Identifying on-premises user accounts that are service accounts can be difficult | - Document service accounts deployed in your environment</br> - Track the account name and the resources they can access</br> - Consider adding the prefix svc- to user accounts used as service accounts |
4038

4139
## Find on-premises user accounts used as service accounts
4240

43-
On-premises user accounts are just like any other Active Directory user account. It can be difficult to find such accounts, because no single attribute of a user account identifies it as a service account.
44-
45-
We recommend that you create an easily identifiable naming convention for any user account that you use as a service account. For example, you might add "svc-" as a prefix and name the service “svc-HRDataConnector.”
41+
On-premises user accounts are like other AD user accounts. It can be difficult to find the accounts, because no user account attribute identifies it as a service account. We recommend you create a naming convention for user accounts uses as service accounts. For example, add the prefix svc- to a service name: svc-HRDataConnector.
4642

47-
You can use some of the following criteria to find these service accounts. However, this approach might not find all accounts, such as:
43+
Use some of the following criteria to find service accounts. However, this approach might not find accounts:
4844

49-
* Accounts that are trusted for delegation.
50-
* Accounts with service principal names.
51-
* Accounts with passwords that are set to never expire.
45+
* Trusted for delegation
46+
* With service principal names
47+
* With passwords that never expire
5248

53-
To find the on-premises user accounts you've created for services, you can run the following PowerShell commands.
49+
To find the on-premises user accounts used for services, run the following PowerShell commands:
5450

55-
To find accounts that are trusted for delegation:
51+
To find accounts trusted for delegation:
5652

5753
```PowerShell
5854
5955
Get-ADObject -Filter {(msDS-AllowedToDelegateTo -like '*') -or (UserAccountControl -band 0x0080000) -or (UserAccountControl -band 0x1000000)} -prop samAccountName,msDS-AllowedToDelegateTo,servicePrincipalName,userAccountControl | select DistinguishedName,ObjectClass,samAccountName,servicePrincipalName, @{name='DelegationStatus';expression={if($_.UserAccountControl -band 0x80000){'AllServices'}else{'SpecificServices'}}}, @{name='AllowedProtocols';expression={if($_.UserAccountControl -band 0x1000000){'Any'}else{'Kerberos'}}}, @{name='DestinationServices';expression={$_.'msDS-AllowedToDelegateTo'}}
6056
6157
```
6258

63-
To find accounts that have service principal names:
59+
To find accounts with service principal names:
6460

6561
```PowerShell
6662
6763
Get-ADUser -Filter * -Properties servicePrincipalName | where {$_.servicePrincipalName -ne $null}
6864
6965
```
7066

71-
To find accounts with passwords that are set to never expire:
67+
To find accounts with passwords that never expire:
7268

7369
```PowerShell
7470
7571
Get-ADUser -Filter * -Properties PasswordNeverExpires | where {$_.PasswordNeverExpires -eq $true}
7672
7773
```
7874

79-
You can also audit access to sensitive resources, and archive audit logs to a security information and event management (SIEM) system. By using systems such as Azure Log Analytics or Microsoft Sentinel, you can search for and analyze and service accounts.
75+
You can audit access to sensitive resources, and archive audit logs to a security information and event management (SIEM) system. By using Azure Log Analytics or Microsoft Sentinel, you can search for and analyze service accounts.
8076

81-
## Assess the security of on-premises user accounts
77+
## Assess on-premises user account security
8278

83-
You can assess the security of on-premises user accounts that are being used as service accounts by using the following criteria:
79+
Use the following criteria to assess the security of on-premises user accounts used as service accounts:
8480

85-
* What is the password management policy?
86-
* Is the account a member of any privileged groups?
87-
* Does the account have read/write permissions to important resources?
81+
* Password management policy
82+
* Accounts with membership in privileged groups
83+
* Read/write permissions for important resources
8884

8985
### Mitigate potential security issues
9086

91-
Potential security issues and their mitigations for on-premises user accounts are summarized in the following table:
87+
See the following table for potential on-premises user account security issues and their mitigations:
9288

9389
| Security issue | Mitigation |
9490
| - | - |
95-
| Password management.| <li>Ensure that password complexity and password change are governed by a robust process that includes regular updates and strong password requirements.<li>Coordinate password changes with a password update to minimize service downtime. |
96-
| The account is a member of privileged groups.| <li>Review group memberships.<li>Remove the account from privileged groups.<li>Grant the account only the rights and permissions it requires to run its service (consult with service vendor). For example, you might be able to deny sign-in locally or deny interactive sign-in. |
97-
| The account has read/write permissions to sensitive resources.| <li>Audit access to sensitive resources.<li>Archive audit logs to a SIEM (Azure Log Analytics or Microsoft Sentinel) for analysis.<li>Remediate resource permissions if an undesirable level of access is detected. |
98-
| | |
99-
91+
| Password management| - Ensure password complexity and password change are governed by regular updates and strong password requirements</br> - Coordinate password changes with a password update to minimize service downtime |
92+
| The account is a member of privileged groups| - Review group membership</br> - Remove the account from privileged groups</br> - Grant the account rights and permissions to run its service (consult with service vendor)</br> - For example, deny sign-in locally or interactive sign-in|
93+
| The account has read/write permissions to sensitive resources| - Audit access to sensitive resources</br> - Archive audit logs to a SIEM: Azure Log Analytics or Microsoft Sentinel</br> - Remediate resource permissions if you detect an undesirable access levels |
10094

10195
## Move to more secure account types
10296

0 commit comments

Comments
 (0)