LogAccessRoles - System Parameter
LogAccessRoles lists the SQL Server database roles that the Logging Service grants on each new Log Database to the service accounts in LogServiceUsers. These are SQL Server roles, not Nodinite Roles. It is one of the System Parameters applied in How a new Log Database is created.
At a Glance
| Property | Value |
|---|---|
| Key | LogAccessRoles |
| Data type | string (database roles, separated by semicolons) |
| Default | db_datareader;db_datawriter;db_ddladmin |
| Read by | Logging Service |
| Takes effect | Within about 15 seconds; no restart needed. Applies to the next Log Database the Logging Service creates. |
| Status | ✅ Active |
| Since | Nodinite 3; renamed from ImLogAccessRoles in Nodinite 7 |
How It Works
When the Logging Service creates a new Log Database, it gives every account in LogServiceUsers access to it with each role in this list. The two parameters work as a pair: LogServiceUsers says who, LogAccessRoles says what. Existing Log Databases are not changed.
The Logging Service account needs sysadmin, or dbcreator, diskadmin, and securityadmin, to create Log Databases and assign the roles: it runs CREATE USER ... FOR LOGIN in each new Log Database and adds the user to each role. The login must already exist on the instance; for a missing one, the grant fails, a Critical Log Audit says Failed to grant the role, and the Log Database is still created. See SQL Server Sysadmin Requirements.
Value Format
A semicolon-separated list of SQL Server database roles, without spaces:
db_datareader;db_datawriter;db_ddladmin
Choosing a Value
- Keep the default; it follows the principle of least privilege and is what the Nodinite Core Services are set up to use.
- Change it only when your DBA requires a different model, for example a custom role your organization uses, and check that every service still works against the next new Log Database.
Frequently Asked Questions
Can I assign access rights manually?
Yes, and you must when you create Log Databases manually or a login was missing when the Log Database was created. Grant the same roles to the same accounts; the SQL rights for the Log Database and the Prerequisites & Permissions checklist on the Core Services page list what each service needs.