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

Community site session details

Session Id : 4QpIdgPF3beDpcyUiaTYz2
Power Automate - Building Flows
Answered

grant access to a SharePoint group

Like (0) ShareShare
ReportReport
Posted on 26 Oct 2020 17:04:10 by

I have a SPD2010 workflow which gave SharePoint groups access to a list item depending on a field in the form.

So if field1 = a, group A would get edit permissions. If field1 = b, then group B would get edit permissions etc.

 

How can I replicate this (easily) in PA?

  • OrcPeon Profile Picture
    43 on 17 Feb 2022 at 13:47:08
    Re: grant access to a SharePoint group

    I have a quick question regarding this HTTP-Request:

    Is it possible to have 2 Groups in addroleassignment(PrincipalId= 'Group 1' & 'Group 2') with the same roleDefId?

  • MichaelSL Profile Picture
    10 on 17 Feb 2022 at 09:33:39
    Re: grant access to a SharePoint group

    As in your website always very helpful tips! Thank You Tom 🙂

  • nicoaca Profile Picture
    2 on 01 Feb 2022 at 21:25:37
    Re: grant access to a SharePoint group

    Hi, what about Document Libraries? This solution only apply to SharePoint lists, right?

  • Community Power Platform Member Profile Picture
    on 28 Oct 2020 at 13:43:28
    Re: grant access to a SharePoint group

    That's worked nicely. Thanks very much @tom_riha

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on 26 Oct 2020 at 18:05:32
    Re: grant access to a SharePoint group

    You can't replicate that easily in PA, there's no special action to assign permissions to SharePoint group. You'll have to use HTTP request for that:

     

    _api/lists/getByTitle('<listName>')/items(<itemID>)/roleassignments/addroleassignment(PrincipalId=<SPgroupID>,roleDefId=<roleID>)

     

    So it could look like this:

    image.png

    The <listName> and <itemID> placeholders are clear I suppose, so for the <SPgroupID>, that can be found in the URL on the group screen.

    image.png
    And for the <roleID>, here's a list of the default permission IDs:

    Default permission level IDs 
    Full Control1073741829
    Design1073741828
    Edit1073741830
    Contribute1073741827
    Read1073741826
    Approve1073741927
    View1073741832

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete