Replication Security: Permissions and Accounts the Data Director Actually Needs
Does replication really need the keys to everything, or did the setup just never get narrowed?
That is the myth to check. LS Retail’s own installation guidance says the Data Director can effectively access any table in the database, and in the same breath strongly recommends restricting the account it runs under. Those two sentences sit uneasily together, and most estates resolve the tension by ignoring the second one. The documented SaaS-era setup points the other way again: a permission set copied from SUPER for the service-to-service application user. This piece inventories every account a replication job touches, states what each one can reach on the documented evidence, and separates what the vendor requires from what the vendor merely documents as a starting point.
One limit up front: no retrieved source publishes a least-privilege permission set for replication. There is no certified minimum to quote. What exists is a set of documented requirements and one explicit vendor recommendation to restrict, enough to tighten honestly, not enough to invent a definitive list.
The myth: replication accounts need the keys to everything
The myth survives because the starting condition is real. The Data Director needs access to the organisation’s databases to move data, and unlike a regular user it is not restricted to viewing data through a GUI, it can effectively access any table. From that starting condition, “leave it wide open” feels like the safe option: narrow the account, the reasoning goes, and a replication job fails at 2 a.m. on a table nobody listed.
The vendor does not endorse that conclusion. The installation guidance strongly recommends specifying access permissions for the user account the Data Director uses, restricting it to the tables it needs to read or write. Wide access is described as a capability to be constrained, not a requirement to be preserved. The myth is not that the reach exists. The myth is that the reach is required.
Inventory: every account a replication job touches
| Account | What it does | Documented reach |
|---|---|---|
| Data Director database user | Connects the Data Director to the databases it moves data between | Effectively any table, unless restricted, the restriction the vendor recommends |
| Business Central server account | Logs LS Central into the Business Central server instance and database | Service logon, self-registered SPN, SMSvcHost configuration entry, appropriate SQL Server privileges |
| Distribution Location connection user | Authenticates each location-to-location connection | Read and write in the database for a Database connection; ability to call LS Central web services for Web SSL / Web S2S |
| S2S application user | The SaaS-era application identity for service-to-service access | Documented setup assigns the D365 BUS PREMIUM user group and a SUPER_S2S permission set copied from SUPER |
Four identities, four different kinds of privilege, table access, operating-system and service rights, per-location connection rights, and an application permission set. Auditing “the replication account” as if it were one thing misses three of them. The site’s wider audit of powerful permissions, finding your accidental SUPER users, covers the human side of the same problem; this inventory is the machine side.
Data Director’s database reach, and the restriction the vendor recommends
The documented facts are specific. The Data Director can effectively access any table because no GUI restricts what it can view. The recommendation that follows is equally specific, in two parts:
- Specify access permissions for the user account the Data Director uses, restricting it to the tables it needs to read or write.
- Preferably use Business Central’s table-only access for all Data Director user accounts: the security system can limit an account to database-table access only, which makes the account useless to regular users.
That second point is a spec worth verifying in any estate. A table-only account has no value as a stolen interactive login, because it was never an interactive login. If the Data Director accounts in an estate can also sign in as regular users, the setup has skipped a documented safeguard, and that finding needs no least-privilege list to act on. It is a direct comparison between the installation guidance and the estate’s own configuration.
What the guidance does not do is name the tables. “The tables it needs” depends on which subjobs the estate runs and which tables they carry, so the enumeration has to be built per estate, from the replication design itself. Any article, this one included, that published a universal table list would be inventing it.
The server and service accounts underneath
Replication also rides on the platform account beneath LS Central. The server account is the account that logs LS Central into the Business Central server instance and the database, and LS Retail’s implementation guidance recommends a domain server account over Network Service. The documented requirements for that domain account are a checklist in themselves:
- Enabled to log in as a service.
- Enabled to register an SPN on itself.
- Added to the SMSvcHost.exe.config file.
- Given appropriate SQL Server privileges.
These are not database-table permissions and they do not appear in a Business Central permission review. An audit that only reads permission sets will never see the SPN right or the service logon right. That is precisely why the inventory in this piece treats accounts, not permission sets, as the unit of review.
Per-location credentials complete the non-application layer. In a Distribution Location, the connection type decides what the stored user must be able to do: for a Database connection, read and write data in the database; for Web SSL or Web S2S, call LS Central web services. For OAuth, the login in the connection configuration is provided as the client ID, client secret, and tenant ID. Each location therefore carries its own credential, with its own reach, and a location retired from the estate leaves a credential behind unless someone removes it deliberately. How locations route data is covered in distribution locations and how data routes between stores.
SaaS reality: S2S users and the SUPER_S2S compromise
The cloud setup is where the myth comes closest to being documented fact, and where precision matters most. For the S2S application user, LS Retail’s documented setup for one cloud scenario instructs: add the D365 BUS PREMIUM user group, and assign a SUPER_S2S permission set created by copying the SUPER permission set, because SUPER cannot be applied directly on a user. The application record’s State must first be set to Enabled, which creates the user, before permissions are configured. The mechanics of that identity are covered in OAuth 2.0 service-to-service setup.
Call that what it is: a documented starting configuration that grants broadly, in a specific documented scenario, not a published finding that replication needs SUPER-equivalent rights to function, and not a least-privilege recommendation. No retrieved source discusses narrowing the S2S user down for replication-only use. The honest position for an estate running SUPER_S2S is therefore: the grant is documented, the necessity is not. Narrowing it is untested territory that an estate enters deliberately, in a test environment, with replication runs watched, not a change to make on the strength of an article.
Tightening checklist: restrict, test, and prove replication still runs
- Inventory before touching. List the four account types from the inventory table as they exist in the estate, every Data Director user, the server account, every Distribution Location credential, and every S2S application user.
- Apply the documented restriction. For each Data Director user, specify access permissions restricted to the tables that account needs to read or write, derived from the subjobs it actually runs.
- Make the accounts table-only. Where the estate has not already done so, limit Data Director user accounts to database-table access only, as the installation guidance prefers.
- Verify the server account against its checklist. Service logon, self-registered SPN, the SMSvcHost.exe.config entry, and appropriate SQL Server privileges, present because documented, and nothing assumed beyond them.
- Match each location credential to its connection type. Database locations need database read and write; Web SSL and Web S2S locations need web-service call rights; OAuth locations carry client ID, secret, and tenant ID. Remove credentials for locations no longer in the estate.
- Record the S2S position honestly. If an application user carries SUPER_S2S, record it as a documented-but-broad grant under review, not as a requirement. Any narrowing is tested with replication watched run by run.
- Prove replication still runs. After each restriction, run the affected replication jobs and verify the data arrives at the destination. A restriction that has not been followed by a watched, successful run is an untested change, not a security improvement.
What success looks like: every replication identity in the estate is listed with its documented reach, Data Director accounts are table-restricted and table-only, location credentials match their connection types, and every tightening step is followed by a successful replication run on record. The goal was never the smallest possible permission set on paper. It is an estate where each account’s reach is a decision someone made and tested, instead of a default nobody questioned.
, Dex Carter, Tech Writer
Keep readingNext: OAuth 2.0 for Business Central APIs: service-to-service setup without web service access keys →