cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Field
Level 8

Change Permissions error using sharepoint rest api

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Field
Level 8

Re: Change Permissions error using sharepoint rest api

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.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Change Permissions error using sharepoint rest api

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-t...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Field
Level 8

Re: Change Permissions error using sharepoint rest api

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.

View solution in original post

Field
Level 8

Re: Change Permissions error using sharepoint rest api

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.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 201 members 6,440 guests
Please welcome our newest community members: