Create and map login and user accounts
- Last UpdatedOct 02, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
A SQL Server login that is mapped to a domain user group is required for communication between a PI AF SQL Server database (typically named PIFD) and the PI AF application service. Before starting this procedure, ensure that you have configured a domain group for the account under which the PI AF application service runs. Complete these steps on both the principal and mirror machines.
-
Open Microsoft SQL Server Management Studio, and connect to the SQL Server instance that stores the PI AF SQL Server database (PIFD).
-
Under the SQL Server instance, expand Security > Logins.
-
Right-click the Logins folder and select New Login.
-
To include the groups object type, click Search.
-
Click Object Types in the Select User Group window.
-
Select Groups in the Object Types window.
-
Click OK to return to the window.
-
In the Select User Group window, click Locations.
-
In the Locations window, select the Entire Directory folder and click OK.
-
Enter the domain user group and include the domain name in the Enter the object name to select field with this format:
YourDomain\YourAFDomainGroup
-
Click OK to return to the General page.
-
-
Select the Windows authentication option.
-
Select the User Mapping page.
-
Under Users mapped to this login, select Map in the PIFD database row.
-
Ensure that the User column for the PIFD row is set to the domain user group YourDomain\YourAFDomainGroup.
-
Under Database role membership for: PIFD, select db_AFServer.
-
Verify that the public role is selected; if it is not, select the public role check box.
-
Click OK to save the new SQL Server login.