web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change Permissions err...
Power Automate
Answered

Change Permissions error using sharepoint rest api

(0) ShareShare
ReportReport
Posted on by 339

Hello there,

 

I am creating a flow that, whenever a page is created, will pickup a Field called "Audience" and it will give permissions to people or security groups that are inserted on that field.

My flow is the following:

imagem.png

 

My flow sometimes won't do the Apply to Each,  and when it does, it gives me the following error:

The length of the URL for this request exceeds the configured maxUrlLength value.

 

How can i fix this?

 

Categories:
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Field ,

     

    Could you share the specific configuration of Flow?

    I am afraid I can't reproduce the issue you mentioned here. Please provide more details to analyze this issue.

    Also please refer to the following blog to get more about the details of assign unique permission:

    assign-unique-permissions-to-a-document-with-the-new-send-an-http-request-to-sharepoint-action-how-to-use-the-sharepoint-rest-api-in-flow

     

    Best Regards,

  • Verified answer
    Field Profile Picture
    339 on at

    Hey there,

    Im sending all the details of my flow:

     

    Part1.jpg

     

    Part2.png

     

    Part3.png

     

    Part4.png

     

    I have followed the link you gave me but it still shows me the error. I hope i could provide everything.

     

    Thank you very much.

  • Field Profile Picture
    339 on at

    Hello.

     

    I marked my question as a solution even though it wasn't. It was an error in my part.

     

    I get the following error:

     

    imagem.png

     

    <!DOCTYPE html>
    <html>
     <head>
     <title>The resource cannot be found.</title>
     <meta name="viewport" content="width=device-width" />
     <style>
     body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
     p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
     b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
     H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
     H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
     pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
     .marker {font-weight: bold; color: black;text-decoration: none;}
     .version {color: gray;}
     .error {margin-bottom: 10px;}
     .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
     @media screen and (max-width: 639px) {
     pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
     }
     @media screen and (max-width: 479px) {
     pre { width: 280px; }
     }
     </style>
     </head>
    
     <body bgcolor="white">
    
     <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
    
     <h2> <i>The resource cannot be found.</i> </h2></span>
    
     <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
    
     <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.
     <br><br>
    
     <b> Requested URL: </b>/sites/<site>/<subsite>/_api/lists/getByTitle(‘Pages’)/items(&#39;91&#39;)/roleassignments/addroleassignment(principalid= 25} ,roledefid=1073741826)<br><br>
    
     </body>
    </html>
    
    clientRequestId: 6ba2a670-b541-4680-a874-3890956bef6c
    serviceRequestId: dd29f19e-5020-1000-b1fc-5b66d8802116

    There are no missing resources and all the connections look fine.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard