cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted
Helper I
Helper I

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
Highlighted
Helper I
Helper I

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (13,571)