Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Assistance with Adding a user to a Group

(0) ShareShare
ReportReport
Posted on 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 at
    Re: Assistance with Adding a user to a Group

    Worked!

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow