Documentation PI Nexus+ Documentation

PI Nexus+ / Reference

Service Account Rights

This reference lists the rights of the PI Nexus+ service account, where each is needed, and what happens when one is missing.

Overview

This reference lists the rights of the PI Nexus+ service account, where each is needed, and what happens when one is missing.

Account formats

FormatExampleAccepted
Domain accountDOMAIN\svc-pinexusYes (recommended)
Local account.\svc-pinexusYes (single server without domain access)
User principal namesvc-pinexus@domain.exampleYes
Group managed service accountDOMAIN\svc-pinexus$, no passwordYes
Bare namesvc-pinexusNo: the installer uses a fallback identity

Database Setup and Prepare-Database.sql take the same account names.

Windows rights on the PI Nexus+ servers

RightServerNeeded forIf missing
Log on as a batch job (SeBatchLogonRight)Web serverApp pool PINexusAppPoolThe installer sets the app pool to ApplicationPoolIdentity and logs a warning
Log on as a service (SeServiceLogonRight)Scanner serverService PI Nexus+ ScannerThe installer sets the service to LocalSystem and logs a warning
Not in Deny log on as a batch job / Deny log on as a serviceBothAs aboveAs above
Read & Execute on the installation folderBothRunning the programGranted by the installer
Modify on C:\ProgramData\Software Athlete\PI Nexus+BothLogs, bootstrap.json, working filesGranted by the installer
Read access to the private key of the secret certificateBoth, split with OpenID ConnectProtecting the OpenID Connect client secretReadiness warns under API: Secret certificate or Worker: Secret certificate

PI System and database rights

RightNeeded whenUsed by
PI identity mapping with read access to PI Points and their configurationAlways, on each PI Data ArchiveBoth identities
Read on the %OSI\Interfaces Module Database hierarchy (Windows authentication only)Interface Tracking is onScanner service identity
Read on AF Servers and the AF databases to scanAlwaysBoth identities
Read on the PI Adapter health AF database and the PI Points its attributes referencePI Adapter monitoring is usedBoth identities
Read on PIUSER, PIMAPPING and PIDBSEC in Database Security of each PI Data ArchiveThe Access page is usedScanner service identity only; see Access Map in the Administration Guide
Read on the AF Server's Identities, Mappings and the security of its collections and databasesThe Access page is usedScanner service identity only
db_owner on the PI Nexus+ databaseAlwaysBoth identities
db_datareader on each PI Vision databasePI Vision inventory is usedBoth identities. The Access read adds nothing: it reads four tables with the display scan's login
Read of the directory; remote SAM read on a PI or AF server for its local groupsThe Access page is usedScanner service identity; accounts outside its forest show External account (enabled state and groups not read), or Not found when Windows cannot name them
Write rights on PI PointsCompression changes are applied, or point attribute fixes are allowedSee PI Point Rules and Issue Fixes in the Administration Guide
Write rights on PI identities and mappings, Admin on AF identities, mappings and securityAccess fixes are allowedThe scanner identity; see Issue Fixes in the Administration Guide
Write rights for analysis recalculationAnalysis recalculation is usedSee AF Servers and Databases in the Administration Guide
Rights on monitored hostsHost monitoring is usedScanner identity; see Required Windows rights on each host in Host Monitoring Reference

Which identity does what

WorkRuns as
Browser requests, Admin pages, Test, discovery, PI Adapter discovery test, compression apply and restore, license installation, Admin > SQL Server > ApplyApp pool identity (web server)
Test Module DB, scans, health refreshes, the four-hourly access read and Read now on the Access page, change-feed updates, runtime polls of PI Interfaces and PI Adapters, host monitoring, scheduled emails, issue fixes and their undoScanner service identity (scanner server)
Schema migrations at startupApp pool identity

A Test that succeeds proves access for the app pool identity only. A scoped scan proves it for the scanner service identity.

Fallback identities

ComponentFallbackEffect
App poolApplicationPoolIdentity (IIS AppPool\PINexusAppPool)The site opens, but SQL Server and PI access fail
Scanner serviceLocalSystem (appears as DOMAIN\SERVER$)Scans fail or read with the computer account's rights

Readiness shows each identity under API identity and heartbeat and Worker identity and heartbeat.