SOLVED

Team channel creation with powershell "automatically appear everyones list

%3CLINGO-SUB%20id%3D%22lingo-sub-1635732%22%20slang%3D%22en-US%22%3ETeam%20channel%20creation%20with%20powershell%20%22automatically%20appear%20everyones%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1635732%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20guys%20-%20I%20am%20new%20to%20microsoft%20teams%20..%20i%20am%20trying%20to%20create%20channel%20with%20powershell%20where%20i%20should%20be%20able%20to%20check%20in%20checkbox%20%22%3CSPAN%3EAutomatically%20show%20this%20channel%20in%20everyone%E2%80%99s%20channel%20list%3C%2FSPAN%3E%22%20using%20powershell%20..%20could%20you%20guide%20whats%20the%20property%20for%20this%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1635732%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20channel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1636506%22%20slang%3D%22en-US%22%3ERe%3A%20Team%20channel%20creation%20with%20powershell%20%22automatically%20appear%20everyones%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1636506%22%20slang%3D%22en-US%22%3E%3CP%3EThere's%20no%20way%20to%20set%20this%20via%20the%20PowerShell%20cmdlets%20currently.%20You%20can%20use%20the%20Graph%20API%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fchannel%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fchannel%3Fview%3Dgraph-rest-beta%3C%2FA%3E)%20or%20wait%20for%20an%20updated%20version%20of%20the%20PowerShell%20module%20(they%20just%20released%20a%20new%20preview%20version%20btw%2C%20I%20haven't%20checked%20if%20the%20parameter%20is%20available%20there).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello guys - I am new to microsoft teams .. i am trying to create channel with powershell where i should be able to check in checkbox "Automatically show this channel in everyone’s channel list" using powershell .. could you guide whats the property for this

3 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

There's no way to set this via the PowerShell cmdlets currently. You can use the Graph API (https://docs.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-beta) or wait for an updated version of the PowerShell module (they just released a new preview version btw, I haven't checked if the parameter is available there).

Highlighted

Thanks for response , Graph API also should fine but i need to use membership-type and isfavouritebydefault options. I can see these are available only in Beta versions not v1.0.

As This is for client implementations, shall i go ahead and use in production implementations also? what are drawbacks if i use these type of beta properties in production?

 

"isFavoriteByDefault": true, "membershipType": "channelMembershipType",

 

 

 

Highlighted

That's up to you, the /beta endpoints come with no support and can change at any time. Your other option is to wait :D