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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,038)