cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Guero
Level: Powered On

Assigning Role Definition to Site Security group through Flow?

Hi,

 

I'm currently in the process of trying to automate SharePoint site creation, and am looking at doing so with MS Flow, MS Graph, and the SharePoint API - I've created a new role definition permission level - Limited Read (Which is just 'Read' minus the ability to view versioning information) for the client site, and a new client site group titled "Client Users", to go alongside Owners, Members, and Visitors. However, I'm not 100% sure about how I'd actually go about assigning the permission level to the sitegroup itself? I know through PowerShell I'd just use the Set-PnPGroupPermissions cmdlet, but I'm not clear on how to do it through Flow - I'm currently giving it a shot through a HTTP action and am getting the below error:

 

{"error_description":"Invalid issuer or signature."}

 

Can anyone tell me where I'm going wrong? I'm guessing it's either the URI or my authentication. Alternatively, can someone point me in the direction of how to assign a permission level to a group through Flow?

 

See Flow below:Flow 1.png

 

 

Flow 2.png

 

 

Flow 3.png

 

 

Flow 4.png

 

Flow 5.png

 

 

Any help would be appreciated,

Thank you!

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Guero
Level: Powered On

Re: Assigning Role Definition to Site Security group through Flow?

Managed to get this working - tried it with the 'Send HTTP Request to Sharepoint' instead and it worked first time.



Flow 7.png

 

Flow 8.png

 

View solution in original post

2 REPLIES 2
Guero
Level: Powered On

Re: Assigning Role Definition to Site Security group through Flow?

Managed to get this working - tried it with the 'Send HTTP Request to Sharepoint' instead and it worked first time.



Flow 7.png

 

Flow 8.png

 

View solution in original post

Highlighted
Community Support Team
Community Support Team

Re: Assigning Role Definition to Site Security group through Flow?

Hi @Guero ,

 

I am glad to hear that you made it. Thanks for updating and sharing.

 

Action Send an HTTP request to SharePoint allows you to construct and execute SharePoint Rest API queries. When the existing SharePoint flow actions don’t suffice your need, you could then consider using this action.

 

Here are some reference docs could be helpful:

https://www.chakkaradeep.com/2018/05/16/working-with-the-sharepoint-send-http-request-flow-action/

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/connect-to-sharepoint

 

Best regards,

Mabel    

      

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

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: 174 members 5,549 guests
Please welcome our newest community members: