Skip to main content
Community site session details

Community site session details

Session Id : 6telHa74IF/K0BH5x615xy
Power Automate - Using Flows
Answered

Assistance with Adding a user to a Group

Like (0) ShareShare
ReportReport
Posted on 23 Jan 2020 03:26:49 by 34

Hello gang,

 

I've been looking for solutions online to automatically add a user to a SharePoint 'Group' in the onboarding phase of my flow.

I'm attempting to do this with the 'Send an HTTP request to SharePoint' module. This is designed to allocate users access to their department SharePoint page based on the permissions I've established.

 

HTTPrequest2.png
error message

HTTPrequest.png

I'm new to this, So I'm trying to make sense of this error I'm getting when testing this function.

- If someone could assist me in finding where to point the 'URI' address.HTTPrequest4.png

And how to validate this is the correct url addr.

- As well as how to find the group id (is that found in the url in the 'site permissions' (HTTPrequest3.png)

- In the 'Body' Am I correct in the assumption that this requires the {'type':'SP.User'} (referring to Share point user) And their associated 'LoginName'.

- And why I'm getting an invalid type response when I run this function. 

 

Any help will be greatly appreciated

 

thank you 

 

  • w0rmsp17 Profile Picture
    34 on 28 Jan 2020 at 04:35:39
    Re: Assistance with Adding a user to a Group

    Worked!

  • Verified answer
    v-bacao-msft Profile Picture
    on 24 Jan 2020 at 00:53:06
    Re: Assistance with Adding a user to a Group

     

    Hi @w0rmsp17 ,

     

    You need to add two underscores in front of the metadata instead of one.

    Please refer to this similar thread and see if it helps:

    https://powerusers.microsoft.com/t5/Building-Flows/Adding-users-to-a-SharePoint-Group/m-p/309811

    In addition, you could refer to the SharePoint Rest API. Basically, all configuration of the body needs to start with __metadata, not _metadata.

     

    Please try again.

     

    Best Regards,

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

Featured topics

Restore a deleted flow
Loading complete