cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DawidZio
Level: Powered On

Add User to group SP Online - REST API

Hi,
Im Trying to use HTTP action and add User to group.
Do you know how to do it via REST API in SPOnline?
 
Tried with:
__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.w|domain\\user
or... /web/sitegroups/getbyID(“+groupid+”)/users('userLogin')
No luck so far..
 
Alternatlviely do you have any other options? Please no answer with premium / extra paid connectors.
Regards
Dawid
1 ACCEPTED SOLUTION

Accepted Solutions
DawidZio
Level: Powered On

Re: Add User to group SP Online - REST API

Ok, sorry panic alert cancelled. It occurs that you need to foget about __metadata and add only LoginName https://emadgabriel.com/2019/01/04/microsoft-flow-add-user-to-sharepoint-group/

View solution in original post

1 REPLY 1
DawidZio
Level: Powered On

Re: Add User to group SP Online - REST API

Ok, sorry panic alert cancelled. It occurs that you need to foget about __metadata and add only LoginName https://emadgabriel.com/2019/01/04/microsoft-flow-add-user-to-sharepoint-group/

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,785)