Scripts · PowerShell Preview

Create-EngageCommunities

Bulk-create up to 50 sample Viva Engage communities from JSON and assign a chosen or random owner.

View on GitHub

Preview: this resource is still maturing. Validate it in a non-production environment before relying on it.

What it is

A non-production PowerShell sample that calls the Microsoft Graph community-creation API to create Viva Engage communities from a JSON input file.

Why use it

  • Demonstrate the community-creation API with repeatable sample data.
  • Assign one specified owner or select random owners for generated communities.

How to use it

Configure the app-registration values in the script, prepare a JSON file of community names and descriptions, then run ./Create-EngageCommunities.ps1 -InputFile C:\Temp\communities.json -NumberofCommunities 25 -AssignedOwner "user@domain.com".

Prerequisites

  • Entra app registration
  • Community.ReadWrite.All and User.Read.All application permissions
  • JSON file containing community names and descriptions