Not possible to create Private group via the API?

Copper Contributor

Apologies if this should be logged elsewhere... but I have an app that provisions new Office 365 groups via the API.

 

I'm using the PnP utility class, but it seems that there's no way / flag / parameter to set the group to Private rather than Public when creating via the API. In fact the PnP class has a 'isPrivate' variable... but it's not used in their code at all.

 

Anyone else seen this??

 

2 Replies
My guess is that it should be possible since the New-UnifiedGroup cmdlet allows to create both kind of Groups in the same way you can do it by using the UI...it might happen this part of the PnP is not completed

Seems so - I couldn't see where the isPrivate flag was being used in the PnP code. They've taken it as a bug: https://github.com/SharePoint/PnP-Sites-Core/issues/1000#issuecomment-277234314