Microsoft Graph Api - Create team Visibility : HiddenMembership error

Occasional Contributor



I've been create a team using this code in c#, using Microsoft Graph Api.


var additionalData = new Dictionary<string, object>() {
    }, {
        new List<string>()
(additionalData["owners@odata.bind"] as List < string >).Add("" + ownId);
var team = new Team {
    DisplayName = displayName,
    Description = description,
    AdditionalData = additionalData
await graphClient




But there was an error all of a sudden today. As follows


Team Definition. Visibility' should be equal to 'HiddenMembership'




So I set the Visibility option.


Visibility = TeamVisibilityType.HiddenMembership


But error occured like this..


Team Visibility must be one of known types: [Private,Public,HiddenMembership]



There is also no information on 'HiddenMemberhip' in this document.

The Visual studio nuget manager also upgraded to the latest beta version.

License is Education A1.

I don't know what's going on here. Any way is fine, so please help me..
13 Replies
We have the same issue since yesterday.
We'll keep you posted if we find a solution. Please do the same :)

@Maxime Pelletier @BoHyun Same issue here! Everything was working just a few days ago.

I get the same also by using Graph Explorer. 



Same problem here... we really need this.
Please keep us updated.
I'm having the same issue, I think creating the group first and then applying a Teams template to it might be a workaround while waiting on a fix to the beta endpoints:

Before this problem, I hadn't realised you could create a templated team from an existing group. I haven't tried yet, but hope it works as have a lot of people waiting on Teams being created from a recent change in timetables. my only worry is i know that the educationClass template with Teams usually applies a number of settings on the underlying created 365 group, like not sending out the email for users joining, etc.



Seems to be a reasonable temporary solution.

Can you keep us updated about the outcomes of your tests?

Would be very apreciated.


I will do the same if I find the time to test it myself.


But can you add a class notebook to a team that wasn't created with an educationClass template?



I created a group with matching settings (HiddenMembership, autosubscribe, etc) and then tried to create a Team using that group and the educationClass template, no joy =(







    "error": {
        "code": "BadRequest",
        "message": "Failed to execute Templates backend request CreateTeamFromGroupWithTemplateRequest. Request Url:, Request Method: PUT, Response Status Code: BadRequest, Response Headers: Strict-Transport-Security: max-age=2592000\r\nx-operationid: xxxxxxxxxxxx\r\nx-telemetryid: 00-xxxxxxxxxxxx-xxxxxxxxxxxx-00\r\nX-MSEdge-Ref: Ref A: xxxxxxxxxxxx Ref B: DB3EDGE1609 Ref C: 2020-11-24T12:29:42Z\r\nDate: Tue, 24 Nov 2020 12:29:42 GMT\r\n, ErrorMessage : {\"errors\":[{\"message\":\"Team Visibility can not be specified as it is inherited from the group.\"}],\"operationId\":\"xxxxxxxxxxxx\"}",
        "innerError": {
            "date": "2020-11-24T12:29:42",
            "request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"



Team Visibility can not be specified as it is inherited from the group.


So, even though I'm not specifying visibility in the creation request, it's picking up HiddenMembership from the pre-created group and somehow it's interfering with the template.  Well and truly messed up it seems.  


I haven't tried creating a class from just Teams (without using Graph) but I wonder if it's having the same issues.


I hope that the solution here isn't to create a class through the /education endpoint that then gets a team created for it by the teacher.


quick edit: I also tested this on the v1.0 graph API with the same errors.  so, this is not just a "beta" issue, it's affecting production endpoints as well.

Looking at the Service health area of the 365 admin center, i can also see that this issue is somewhat covered by an advisory. i don't know how to post links to official service health area, but the university of pennsylvania is mirroring it on their site: id: TM2274400

Admins are unable to create teams using the Microsoft Graph API when a group is specified
TM227440, Microsoft Teams, Last updated: November 24, 2020 4:27 AM
Start time: November 23, 2020 11:07 PM



I can still create Education Teams with Teams Powershell-Module. I've tried to find the type of requist the Module is sending with fiddler, but I can't figure it out yet :)

thank you! I didn't think of trying that. I've also managed to create some Teams via powershell with educlass

@BoHyun @JElliott242 @Sjoerd1185 @SteveDubois @Matt-Hurford @Maxime Pelletier Good news: now everything works again as a few days ago!! I just noticed that the issue "TM2274400" was closed by Microsoft. I tried again using my PowerShell + Graph code for creating EducationClass teams: it works!

Hi. @BoHyun 


Try with the v1.0 and make the request in the following way: 


  "displayName":"My Sample Team",
  "description":"My Sample Team’s Description", 
       "roles":[ "owner" ],