Share via

Is HasUniqueRoleAssignments property of Sharepoint List reliable?

Harshit Jaiswal 0 Reputation points
2026-03-18T11:11:55.59+00:00

I wanted to map the permissions heirarchy for onedrive and sharepoint (including weather it inherits its permissions from its parent directory or not). I wanted to know weather HasUniqueRoleAssignments it the correct attribute to check that or not.

reference: https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms446843(v=office.12)

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vergil-V 10,585 Reputation points Microsoft External Staff Moderator
    2026-03-18T13:20:45.1666667+00:00

    Hi @Harshit Jaiswal   

    Yes, HasUniqueRoleAssignments is a reliable property and is supported for determining whether a SharePoint list inherits role assignments from its parent object. 

    As documented in SPList.HasUniqueRoleAssignments Property (Microsoft.SharePoint) | Microsoft Docs, this property returns a boolean value with the following meaning.  

    • True: the list has unique security settings. In other words, permission inheritance has been broken, and the list uses its own permission assignments. 
    • False: the list continues to inherit its role assignments from the parent object. 

    For more detailed permission mapping, you may also consider using RoleAssignment. This approach helps identify users and user groups that are directly assigned permissions on a list. 

    Reference:  SPRoleAssignment Members (Microsoft.SharePoint) | Microsoft Learn 

    I hope this explanation helps clarify your situation. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.