---
title: LogAccessRoles System Parameter – Database Roles on New Log Databases
description: "LogAccessRoles lists the SQL Server database roles the Nodinite Logging Service grants to the LogServiceUsers accounts on each new Log Database. Default: db_datareader;db_datawriter;db_ddladmin."
---

# LogAccessRoles - System Parameter

**LogAccessRoles** lists the SQL Server database roles that the [Logging Service][] grants on each new [Log Database][Log Databases] 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][].

## :fa-table: At a Glance {#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 |

## :fa-gears: 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][Log Audits] says *Failed to grant the role*, and the Log Database is still created. See [SQL Server Sysadmin Requirements][].

## :fa-code: Value Format

A semicolon-separated list of SQL Server database roles, without spaces:

```text
db_datareader;db_datawriter;db_ddladmin
```

## :fa-lightbulb: 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.

## :fa-question: Frequently Asked Questions

### Can I assign access rights manually?

Yes, and you must when you [create Log Databases manually][CreateLogDB] 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][LogDBSR] and the *Prerequisites & Permissions* checklist on the [Core Services][] page list what each service needs.

## :fa-hand-point-right: Next Steps

* :fa-users-class: [LogServiceUsers][]  
* :fa-database: [Log Databases][]  
* :fa-list: [Manage Log Databases][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-sort-size-up-alt: [SizeToSplitDatabaseOn][]  
* :fa-calendar-day: [DaysToSplitDatabaseOn][]  
* :fa-database: [LogDatabaseName][]  
* :fa-disc-drive: [LogLocations][]  
* :fa-life-ring: [LogDatabaseRecovery][]  
* :fa-server: [AvailabilityGroupBackupPath][]  
* :fa-tools: [DatabaseMaintenance][]  
* :fa-shield-halved: [SQL Server Sysadmin Requirements][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-sliders: [System Parameters][]  

[AvailabilityGroupBackupPath]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AvailabilityGroupBackupPath.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[CreateLogDB]:{ndr}/Core%20Services/Log%20Databases/Features/Create%20new%20Log%20Databases%20Manually.md
[DatabaseMaintenance]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DatabaseMaintenance.md
[DaysToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToSplitDatabaseOn.md
[How a new Log Database is created]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md#how-a-new-log-database-is-created
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[LogDatabaseName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseName.md
[LogDatabaseRecovery]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseRecovery.md
[LogDBSR]:{ndr}/Core%20Services/Log%20Databases/Getting%20started/1.%20Prerequisites.md#fa-database-what-sql-rights-does-the-log-database-require
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogLocations]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogLocations.md
[LogServiceUsers]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogServiceUsers.md
[Manage Log Databases]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[SizeToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md