---
title: Roles Assigned To An Invalid User
description: "**Impact area** Security **Severity** Low **Affected element** Role Group ## Rule ID **SN-0451** ## Impact This rule checks for rows on the sys_user_has_role table (User Roles) which contain empty user references. Roles assigned to an invalid user generate extra effort…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/servicenow-rules/roles-assigned-to-an-invalid-user/"
updated: "2025-03-21"
category: Rules
---

# Roles Assigned To An Invalid User

**Impact area**

Security

**Severity**

Low

**Affected element**

Role Group

## Rule ID

**SN-0451**

## Impact

This rule checks for rows on the sys_user_has_role table (User Roles) which contain empty user references. Roles assigned to an invalid user generate extra effort to security administrators and can lead to improper access control.

Remediation

 Edit the user field in the sys_user_has_role table and change the empty reference to the a valid one or delete the record if it is not needed

**Time to fix**

10 min
