how to convert SharePoint Permission Mask 0x00000005 to the name of the permission

Irek Singer 0 Reputation points
2024-08-13T20:24:57.8233333+00:00

I have this error:

OriginalPermissionMask check failed. asking for 0x00000005, have 0xB008431061

How to find out the name of the permission to assign to the user

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ling Zhou_MSFT 16,745 Reputation points Microsoft Vendor
    2024-08-14T02:21:27.0266667+00:00

    Hi @Irek Singer,

    Thank you for posting in this community.

    To convert a SharePoint Permission Mask to the name of the permission, you can use the following steps:

    Convert the hexadecimal permission mask to binary. For example, 0x00000005 in binary is 00000101.

    Starting from the rightmost bit, match each bit to the corresponding permission level in the following table:

    BitPermission Level0EmptyMask1ViewListItems2AddListItems3EditListItemsFor each bit that is set to 1, add the corresponding permission level to a list of permissions.

    Return the list of permissions.

    For example, for the permission mask 0x00000005, the binary representation is 00000101. The bits that are set to 1 correspond to the ViewListItems and EditListItems permission levels, so the name of the permission is "ViewListItems, EditListItems".

    Reference:

    2.2.2.10 WSS Rights Mask

    Implementing Custom Security Rights in SharePoint

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


Your answer

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