Forum Discussion

DanielK00's avatar
DanielK00
Copper Contributor
Aug 16, 2022
Solved

Restore Teams site owner group (object)

Hi all,   Is it somehow possible to recreate the owner group (object) for a Teams SharePoint site? The following screenshot shows that the group with the members (of the Teams team) is correctly s...
  • ganeshsanap's avatar
    ganeshsanap
    Aug 16, 2022

    DanielK00 I was able to add M365 group to SharePoint group programmatically using flow: 

    Where 6 in first HTTP request action is SharePoint ID of M365 group from User Information List: 

    Uri: _api/web/getuserbyid(6)

    and 3 in second HTTP request action is SharePoint group ID: 

    Uri: _api/web/sitegroups/GetById(3)/users

    Expression for LoginName in Body of second HTTP request action: 

     

    body('Send_an_HTTP_request_to_SharePoint')['d']['LoginName']

     


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources