BreakRoleInheritance returning null values for file

Aparna T 0 Reputation points
2024-08-20T05:28:10.9233333+00:00

I am trying to BreakRoleInheritance and returned with null values yesterday. I Tried changing the environments, still the issue didn't resolve.

I am trying to apply this soon after when an file is created(properties only)- action.

User's image

_api/lists/getByTitle('Documents')/items(37)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)

User's image

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,624 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 25,456 Reputation points Microsoft Vendor
    2024-08-21T06:27:08.8766667+00:00

    Hi @Aparna T ,

    Welcome to Q&A forum!

    I tested it and the situation is the same as yours.

    User's image

    This should be by design. Because I checked the file, the file already has Unique permission, that is, the result has been displayed on the file's permission. There is no value to be returned here, so the return value is null.

    User's image

    You can also check the file's permission interface to see if the permission setting is successful.

    For your reference:

    https://www.c-sharpcorner.com/article/power-automate-break-inheritance-and-set-list-item-level-permissions-in-sharep/

    https://ludovicperrichon.com/power-automate-break-inherance-and-manage-roles-on-items-and-documents/

    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.

    Have a nice day! :-)


    If the answer is helpful, please click "Accept as 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.