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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to add user to ol...
Power Automate
Answered

Flow to add user to old school SP People and Groups using REST API?

(0) ShareShare
ReportReport
Posted on by 158

Has anyone had any luck adding user to an old school People and Groups with Flow?

 

I'm assuming all the connectors for Azure and O365 focus on Office 365 groups, not permission groups. Google is clogged with results for Office 365 groups, so not having any luck there.

 

Am thinking HTTP request and SharePoint REST API:

https://msdn.microsoft.com/en-us/library/office/dn531432.aspx?f=255&MSPPError=-2147217396#bk_UserCollection

 

POST request example: Add a user to a group

 url: "<app web url>/_api/SP.AppContextSite(@target)/web
 /sitegroups(7)/users
 ?@target='<host web url>'",
 method: "POST",
 body: "{ '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.w|domain\\user' }",
 headers: {
 "accept": "application/json; odata=verbose",
 "content-type": "application/json; odata=verbose"

 

group.PNG

 

 

Categories:
I have the same question (0)
  • Verified answer
    bdc604 Profile Picture
    158 on at

    less painful than i thought it would be:

     

    addusertogroup.PNG

  • elizavoinea Profile Picture
    on at

    So what user is added with this flow? 

    Is it connected to a list, or the user that creates an item?

    How to connect this action with a contact list and add a member by his email address (when an item is created) in the permission group?

  • ZMS Profile Picture
    2 on at

    Hi All,

     

    I am able to add the user to to SP Group using flow, how to remove user from the SP group using flow please help me 

  • sathyaulag Profile Picture
    2 on at

    Can you please let me know how you added users to group through flow



     

  • Community Power Platform Member Profile Picture
    on at

    @bdc604 ,

    What is in the LoginName variable?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard