Security requirements
- Last UpdatedFeb 12, 2025
- 4 minute read
For security, the following accounts (or users) in a PI AF collective require a reduced level of permissions:
-
SQL Server Database Engine service
-
SQL Server Agent service
-
PI AF application service
-
PI AF collective creator user
-
AFServers local group
For more information about minimum privilege levels required for replication, see the following Microsoft articles:
Each PI AF collective account has the following access requirements.
SQL Server Database Engine
|
Component |
Action required |
|---|---|
|
Permissions |
|
SQL Server Agent
|
Component |
Action required |
|---|---|
|
Permissions |
|
|
Primary server |
No action required. |
|
Secondary servers |
No action required. |
|
Primary SQL database |
|
|
Secondary SQL databases |
|
PI AF application service
Beginning with PI AF 2.7, by default the PI AF application service is run under a virtual account, NT SERVICE\AFService. Do not run the service under the Local System account. The best practice is to use a low-privileged domain account, as this account does not require special access to the PI AF SQL database.
The PI AF application service account is added to a local Windows security group, which is assigned the appropriate access in the PI AF SQL database.
|
Component |
Action required |
|---|---|
|
Permissions |
|
|
Primary server |
No action required. |
|
Secondary servers |
No action required. |
|
Primary SQL database |
|
|
Secondary SQL databases |
|
PI AF collective creator
A domain user, with Windows credentials that are authenticated by PI AF, Windows, and SQL Server, runs the AF Collective Manager client that is used to create the PI AF collective.
|
Component |
Action required |
|---|---|
|
Permissions |
The credentials that are used to create the PI AF collective are used only once to create the PI AF collective. After you create the PI AF collective, you can remove the special permissions. |
|
Primary server |
Add the credentials used to create the PI AF Collective in AF Collective Manager to the Local Administrators group. |
|
Secondary servers |
Add the credentials used to create the PI AF Collective in AF Collective Manager to the Local Administrators group. |
|
Primary SQL database |
|
|
Secondary SQL databases |
|
AFServers local group
The only account that should exist in the AFServers local Windows group is the account under which the PI AF application service runs.
Note: The AFServers local Windows group is typically created during the installation of the PI AF SQL database. If you use SQL scripts to install the PI AF SQL database, however, you need to set up this user group manually.
|
Component |
Action required |
|---|---|
|
Permissions |
This group should never be given local or domain administrator privileges. |
|
Primary server |
No action required. |
|
Secondary servers |
No action required. |
|
Primary SQL database |
|
|
Secondary SQL databases |
|