Can I Create a Microsoft Group Using PowerShell?

September 22, 2025 3 answers
Asked by GamerNinja42
I'm currently working on a SharePoint automation project where I'm trying to automate the group management process using PowerShell. However, I'm hitting a stumbling block when it comes to creating a Microsoft group and granting it access to a site. One of the team members is concerned we might have to create the groups manually and add members one by one. Is there a more efficient way to handle this using PowerShell or Microsoft Graph?

Answers

TechWizard99
Yes, you can indeed create an Office 365 group using PowerShell with the MS Graph module, even if you don't want to utilize Teams. Just remember that when you create a group, a SharePoint site is automatically generated for that group, so you might not need to assign it to a site manually. It simplifies the process!

CloudGuru88: Just a heads up, Entra groups can't be members of 365 groups, which may complicate things if you need that kind of structure.

Reply to this answer
SharePointPro
Honestly, when you create a site, it should automatically create the associated group, so I'd stick with that method instead of creating groups separately. It reduces the risk of messing things up down the line! Just go with the flow!
Reply to this answer
SecurityCyborg
It seems straightforward to use PowerShell for creating groups. But let's be real, if a simple method is provided, why complicate things? Making a manual group like that sounds like it could lead to more chaos. Just follow the automated setup and you'll be fine!

SkepticalDev: Right? Like, why overthink it? Just use the tools as intended.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions