cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alan78
Advocate II
Advocate II

Microsoft Graph HTTP PUT Error for Groups "groupId needs to be a valid GUID."

Hi All,

 

I am trying to create a Microsoft Team based on an existing Microsoft Group ID in Office 365 using Microsoft Graph. I keep recieveing the following error:

 

{
  "error": {
    "code""BadRequest",
    "message""groupId needs to be a valid GUID.",
    "innerError": {
      "date""2020-10-01T12:47:48",
      "request-id""33284f98-123f-4804-bfeb-200091e24b28",
      "client-request-id""33284f98-123f-4804-bfeb-200091e24b28"
    }
  }
}

 

 

{
    "inputs": {
        "method": "PUT",
        "uri": "https://graph.microsoft.com/v1.0/groups/@{body('Parse_JSON_-_Drive_info_to_JSON_object')?['id']}/team",
        "headers": {
            "Content-Type": "application/json"
        },
        "body": {
            "memberSettings": {
                "allowCreateUpdateChannels": true
            },
            "messagingSettings": {
                "allowUserEditMessages": true,
                "allowUserDeleteMessages": true
            },
            "funSettings": {
                "allowGiphy": true,
                "giphyContentRating": "strict"
            }
        },
        "authentication": {
            "type": "ActiveDirectoryOAuth",
            "tenant": "@variables('TenantId')",
            "audience": "https://graph.microsoft.com",
            "clientId": "@variables('ClientId')",
            "secret": "@variables('ClientSecret')"
        }
    }
}

 

Example of URI output:

https://graph.microsoft.com/v1.0/groups/b!sto_Uck9dUaPwJWTs7R7rLk6Afk8FJZJv-k6fTM5CP_a7iV8n3AIRr84QU...

 

I hope someone can help because I don't understand why this isn't working?

 

https://docs.microsoft.com/en-us/graph/api/team-put-teams?view=graph-rest-1.0&tabs=http

 

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,574)