Small Tips and Tricks : Power Platform – Power Automate – simple Power Automate to get all site groups of SharePoint online site

fig : Power Platform -Power Automate - simple Power Automate to get all site groups of SharePoint online site - Testing the flow
fig : Power Platform -Power Automate - simple Power Automate to get all site groups of SharePoint online site - Testing the flow

Hi All,

Greetings for the day!!!

Today new small tip and trick. Today’s tip regarding Power Automate.

Details / Background

  • We were automating the process of adding user to given group for our users
  • Here we maintained one list in our SharePoint online site with following schema
    • User – Person and Group – only Persons are allowed
    • Group – Person and Group – only Groups are allowed
  • Here respective selected User will get added to given Group
  • Here we need groupid and to get group id we need to get all groups and find our group which is added in list and get group id
  • So here small tip – how to get all site groups in Power Automate

Detailed Steps

  • For demo purpose we will create – “Instant cloud flow“, so that we could trigger it manually as
fig : Power Platform - Power Automate - creating "Instant cloud flow"
fig : Power Platform – Power Automate – creating “Instant cloud flow”
  • After creating “Instant cloud flow” we have an manual trigger as
fig : Power Platform - Power Automate - creating "Instant cloud flow"
fig : Power Platform – Power Automate – creating “Instant cloud flow” – adding trigger – “Manually trigger a flow”
  • As we select “Manually trigger a flow“, we are ready to edit the flow
fig : Power Platform - Power Automate - creating "Instant cloud flow" - added trigger - "Manually trigger a flow"
fig : Power Platform – Power Automate – creating “Instant cloud flow” – added trigger – “Manually trigger a flow”
fig : Power Platform - Power Automate - adding an action "Send an HTTP request to SharePoint"
fig : Power Platform – Power Automate – adding an action “Send an HTTP request to SharePoint”
  • Once we added an action – “Send an HTTP request to SharePoint“, we are read to use the REST API to get all the sitegroups
  • REST API to get all the site groups – _api/web/sitegroups
fig : Power Platform - Power Automate - added an action "Send an HTTP request to SharePoint" - specifying the uri parameter - REST API to get all site groups
fig : Power Platform – Power Automate – added an action “Send an HTTP request to SharePoint” – specifying the uri parameter – REST API to get all site groups
  • Save the flow and we are ready test
fig : Power Platform -Power Automate - simple Power Automate to get all site groups of SharePoint online site
fig : Power Platform -Power Automate – simple Power Automate to get all site groups of SharePoint online site

Test the flow

  • Lets test the flow. We will do manual testing
  • Click on an option “Test” at right top corner
  • On click of “Test” link, right Test panel will appear as shown in below fig
fig : Power Platform -Power Automate - simple Power Automate to get all site groups of SharePoint online site - Testing the flow
fig : Power Platform -Power Automate – simple Power Automate to get all site groups of SharePoint online site – Testing the flow
  • As flow get successfully executed we could verify the flow as

References

Thanks for reading !! If its worth at least reading once, kindly please like and share !!! SHARING IS CARING 🙂

Enjoy the beautiful life !! Have a FUN !! HAVE A SAFE LIFE !! TAKE CARE 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

1 Response

  1. October 17, 2022

    […] Small Tips and Tricks : Power Platform – Power Automate – simple Power Automate to get all site groups of SharePoint online site – https://knowledge-junction.in/2022/10/11/small-tips-and-tricks-power-platform-power-automate-simple-… […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: