Add Office365 Group
Create a Microsoft 365 group, optionally with a team
Description
Creates a Microsoft 365 group with its SharePoint site and, on request, turns it into a Microsoft Teams team. Visibility, mail and security settings and up to two owners can be set. A team without an owner gets the caller as owner.
Location
Organization → General → Add Office365 Group
Full Runbook name
rjgit-org_general_add-office365-group
Details
Version
1.0.1
Required modules
RealmJoin.RunbookHelper (>= 0.8.10)
Schedulable
no
Permissions
Application permissions
Type: Microsoft Graph
Group.Create
Creates the new Microsoft 365 group with visibility, mail settings and owner/member bindings
Team.Create
Promotes the group to a Teams team when CreateTeam is enabled
Group.Read.All
Checks for an existing group with the same mail nickname before creating
User.Read.All (optional — feature: Owner assignment)
Resolves the owner users via /users/{upn} when owners are provided
Parameters
MailNickname
Alias of the group, used for its email address and SharePoint URL.
Required
true
Default Value
Type
String
Portal display name
Mail nickname
DisplayName
Name shown for the group. Leave empty to use the mail nickname.
Required
false
Default Value
Type
String
Portal display name
Display name
CreateTeam
Creates only the group with its SharePoint site, or also a Microsoft Teams team on top of it.
Required
false
Default Value
False
Type
Boolean
Portal display name
Create a Teams team?
Portal options
Only the group with its SharePoint site
false
Also a Microsoft Teams team
true
Private
Public groups can be found and joined by anyone in the organization, private groups only by their members.
Required
false
Default Value
False
Type
Boolean
Portal display name
Visibility
Portal options
Public
false
Private
true
MailEnabled
Gives the group a mailbox and email address.
Required
false
Default Value
False
Type
Boolean
Portal display name
Mail-enabled?
SecurityEnabled
Lets the group be used for permissions and access assignments.
Required
false
Default Value
True
Type
Boolean
Portal display name
Security-enabled?
Owner
Owner of the group. Leave empty for none; a team then gets the caller as owner.
Required
false
Default Value
Type
String
Owner2
Additional owner. Leave empty for none.
Required
false
Default Value
Type
String
Last updated
Was this helpful?