microsoftgraph / msgraph-sdk-serviceissues

Tracks service issues for follow up.
5 stars 0 forks source link

Team with template 'educationClass' can not be provisioned using a group which does not belong to a class. #81

Open ashleywb opened 5 years ago

ashleywb commented 5 years ago

Hi, I'm try to create a Team with educationClass template, the tenant is an education tenant. I create a class using https://docs.microsoft.com/en-us/graph/api/educationroot-post-classes?view=graph-rest-beta&tabs=http I get the groupid and then try and create the team from the group https://docs.microsoft.com/en-us/graph/api/team-post?view=graph-rest-beta#example-4-create-a-team-from-group When I do the above I get the below error.

Apologies if this is posted incorrectly { "error": { "code": "BadRequest", "message": "Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url: https://teams.microsoft.com/fabric/templates/api/groups/30b2540c-7309-49b9-b2b8-e68df8c8c0db/team, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000\r\nx-operationid: 1fa6a01470f4194b8fde488af191909e\r\nx-telemetryid: |1fa6a01470f4194b8fde488af191909e.9e5ba8a8_1.\r\nX-MSEdge-Ref: Ref A: B930A11AFA4F43E7BBB99E7717A94B27 Ref B: DB3EDGE1120 Ref C: 2019-08-23T17:15:15Z\r\nDate: Fri, 23 Aug 2019 17:15:15 GMT\r\n, ErrorMessage : {\"errors\":[{\"message\":\"Team with template 'educationClass' can not be provisioned using a group which does not belong to a class.\"}],\"operationId\":\"1fa6a01470f4194b8fde488af191909e\"}", "innerError": { "request-id": "89e08de1-3853-49d8-ab13-b9a4143bd0d5", "date": "2019-08-23T17:15:16" } } } AB#7297

robinmalik commented 4 years ago

I'm also experiencing this issue, so it seems impossible to enable a Team with Class functionality for existing Groups.

thomphi2 commented 4 years ago

Same here. The educationClass educationStaff Templates fail. The others work with out any issue

jeffangama commented 4 years ago

My goal is to do like classic teams :

Create the group Add a team to the group To workaround a feature where we need to have the TEAM Calendar (group), showing in outlook : https://techcommunity.microsoft.com/t5/microsoft-teams-ama/why-the-teams-calendar-not-visible-in-outlook/td-p/300155 In this way I avoid using powershell to enable the calendar visibility in Outlook

MIchaelMainer commented 3 years ago

@mlafleur Is this scenario expected to be supported?

jakobnotseth commented 3 years ago

This is a normal scenario, you are required to add classes first using the education graph API. Then you can provision class teams by team enabling the office 365 groups representing your classes. Mind you need a edu-tenant in order to use this API. Why Microsoft has decided this a a requirement to use class templates is beyond most of us, but atleast this should get you somewhat further. It is some weird idea that creating a class teams is only required by edu-tenants... Like a private business never has any interest in creating classroom teams.

petrhollayms commented 5 months ago

Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:

https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph

For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!

Note: We will close this repository on April 19, 2024.