Skip to main content

Notifications

Power Automate get SharePoint Group Members & flow code snippets

RezaDorrani Profile Picture Posted 28 Jan 2021 by RezaDorrani 12,141

In this video on Power Automate get SharePoint Group Members & flow code snippets, we will go through a step-by-step tutorial of how to get users/members from a SharePoint group.

 

We will also look at how to share flow code snippets with users within or outside your organization. Code snippets basically mean sharing parts of your flow with other users. Flow snippets uses the flow copy to my clipboard action.


Thanks,
Reza Dorrani, MVP
YouTube
Twitter

Video covers the following:

âś… Get Members from SharePoint Group

âś… Flow Code Snippets - copy to my clipboard action

âś… Get Members of Office 365 Group or Azure AD Group

âś… Sample Snippets to download

 

Links: https://github.com/rdorrani/Microsoft-Flow/tree/master/FlowSnippets   

 

 

Categories:

Comments

  • mariagiugno Profile Picture mariagiugno 23
    Posted 13 Sep 2023 at 16:09:01
    Power Automate get SharePoint Group Members & flow code snippets

    Can you getByName for more than one permission group? 
    _api/web/siteGroups/getByName('Entity')/users

    This Uri allows for only one Permission group.
    Thank you

  • MrYed Profile Picture MrYed
    Posted 01 Jun 2023 at 16:59:57
    Power Automate get SharePoint Group Members & flow code snippets

    Hello;

    Inside the _api/web/sitegroups(119)/Users group, innovation.group Members There is another group called But this code (_api/web/sitegroups(119)/Users) only returns contacts. How can I reach the group within the group?

  • David- Profile Picture David- 1,254
    Posted 06 Jun 2022 at 17:56:11
    Power Automate get SharePoint Group Members & flow code snippets

    This works great, although it seems something changed since you created the video. I needed to use the following expressions for the Select Email step: body('SharePoint_Group_Members')?['d']?['results'] as when I exposed the code from the prior step there was nothing listed with 'outputs'.

  • ViralNaik Profile Picture ViralNaik 1
    Posted 29 Jul 2021 at 21:18:03
    Power Automate get SharePoint Group Members & flow code snippets

    I think you will need to change the Uri to 

     _api/web/sitegroups/GetById(699)/users

     

  • Community Power Platform Member Profile Picture Community Power Pla...
    Posted 06 May 2021 at 17:46:35
    Power Automate get SharePoint Group Members & flow code snippets

    I figured it out, I had "site" instead of "web"

  • Community Power Platform Member Profile Picture Community Power Pla...
    Posted 06 May 2021 at 14:10:31
    Power Automate get SharePoint Group Members & flow code snippets

    Hello Reza, 
    Another great teaching video concerning Power Automate.
    I am having some difficulty implementing this and hope you can assist.

    Chrislond58_0-1620322927236.png

     

    Any help is appreciated!