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
| Format | Example | Accepted |
|---|---|---|
| Domain account | DOMAIN\svc-pinexus | Yes (recommended) |
| Local account | .\svc-pinexus | Yes (single server without domain access) |
| User principal name | svc-pinexus@domain.example | Yes |
| Group managed service account | DOMAIN\svc-pinexus$, no password | Yes |
| Bare name | svc-pinexus | No: the installer uses a fallback identity |
Database Setup and Prepare-Database.sql take the same account names.
Windows rights on the PI Nexus+ servers
| Right | Server | Needed for | If missing |
|---|---|---|---|
Log on as a batch job (SeBatchLogonRight) | Web server | App pool PINexusAppPool | The installer sets the app pool to ApplicationPoolIdentity and logs a warning |
Log on as a service (SeServiceLogonRight) | Scanner server | Service PI Nexus+ Scanner | The installer sets the service to LocalSystem and logs a warning |
| Not in Deny log on as a batch job / Deny log on as a service | Both | As above | As above |
| Read & Execute on the installation folder | Both | Running the program | Granted by the installer |
Modify on C:\ProgramData\Software Athlete\PI Nexus+ | Both | Logs, bootstrap.json, working files | Granted by the installer |
| Read access to the private key of the secret certificate | Both, split with OpenID Connect | Protecting the OpenID Connect client secret | Readiness warns under API: Secret certificate or Worker: Secret certificate |
PI System and database rights
| Right | Needed when | Used by |
|---|---|---|
| PI identity mapping with read access to PI Points and their configuration | Always, on each PI Data Archive | Both identities |
Read on the %OSI\Interfaces Module Database hierarchy (Windows authentication only) | Interface Tracking is on | Scanner service identity |
| Read on AF Servers and the AF databases to scan | Always | Both identities |
| Read on the PI Adapter health AF database and the PI Points its attributes reference | PI Adapter monitoring is used | Both identities |
Read on PIUSER, PIMAPPING and PIDBSEC in Database Security of each PI Data Archive | The Access page is used | Scanner 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 databases | The Access page is used | Scanner service identity only |
db_owner on the PI Nexus+ database | Always | Both identities |
db_datareader on each PI Vision database | PI Vision inventory is used | Both 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 groups | The Access page is used | Scanner 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 Points | Compression changes are applied, or point attribute fixes are allowed | See PI Point Rules and Issue Fixes in the Administration Guide |
| Write rights on PI identities and mappings, Admin on AF identities, mappings and security | Access fixes are allowed | The scanner identity; see Issue Fixes in the Administration Guide |
| Write rights for analysis recalculation | Analysis recalculation is used | See AF Servers and Databases in the Administration Guide |
| Rights on monitored hosts | Host monitoring is used | Scanner identity; see Required Windows rights on each host in Host Monitoring Reference |
Which identity does what
| Work | Runs as |
|---|---|
| Browser requests, Admin pages, Test, discovery, PI Adapter discovery test, compression apply and restore, license installation, Admin > SQL Server > Apply | App 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 undo | Scanner service identity (scanner server) |
| Schema migrations at startup | App 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
| Component | Fallback | Effect |
|---|---|---|
| App pool | ApplicationPoolIdentity (IIS AppPool\PINexusAppPool) | The site opens, but SQL Server and PI access fail |
| Scanner service | LocalSystem (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.
