Microsoft.Graph.Groups

Microsoft Graph PowerShell Cmdlets

Microsoft.Graph.Groups

Add-MgGroupDriveListContentTypeCopy

Add a copy of a [content type][contentType] from a [site][site] to a [list][list].

Add-MgGroupDriveListContentTypeCopyFromContentTypeHub

Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see getCompatibleHubContentTypes and the blog post Syntex Product Updates - August 2021.

Add-MgGroupFavorite

Add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only.

Add-MgGroupSite

Follow a user's site or multiple sites.

Add-MgGroupSiteContentTypeCopy

Add a copy of a [content type][contentType] from a [site][site] to a [list][list].

Add-MgGroupSiteContentTypeCopyFromContentTypeHub

Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see getCompatibleHubContentTypes and the blog post Syntex Product Updates - August 2021.

Add-MgGroupSiteListContentTypeCopy

Add a copy of a [content type][contentType] from a [site][site] to a [list][list].

Add-MgGroupSiteListContentTypeCopyFromContentTypeHub

Add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see getCompatibleHubContentTypes and the blog post Syntex Product Updates - August 2021.

Add-MgGroupToLifecyclePolicy

Invoke action addGroup

Confirm-MgGroupGrantedPermissionForApp

Invoke action checkGrantedPermissionsForApp

Confirm-MgGroupMemberGroup

Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.

Confirm-MgGroupMemberObject

Invoke action checkMemberObjects

Confirm-MgGroupPermissionGrantMemberGroup

Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Azure AD. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.

Confirm-MgGroupPermissionGrantMemberObject

Invoke action checkMemberObjects

Confirm-MgGroupSiteInformationProtectionSignature

Invoke action verifySignature

Copy-MgGroupDriveItem

Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name.

Copy-MgGroupDriveListContentTypeToDefaultContentLocation

Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation.

Copy-MgGroupDriveRoot

Asynchronously creates a copy of an [driveItem][item-resource] (including any children), under a new parent item or with a new name.

Copy-MgGroupOnenoteNotebook

Copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

Copy-MgGroupOnenotePageToSection

Copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

Copy-MgGroupOnenoteSectionToNotebook

Copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

Copy-MgGroupOnenoteSectionToSectionGroup

Copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result.

Copy-MgGroupSiteContentTypeToDefaultContentLocation

Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation.

Copy-MgGroupSiteListContentTypeToDefaultContentLocation

Copy a file to a default content location in a [content type][contentType]. The file can then be added as a default file or template via a POST operation.

Get-MgGroup

Get the properties and relationships of a group object. This operation returns by default only a subset of all the available properties, as noted in the Properties section. To get properties that are not returned by default, specify them in a $select OData query option. The hasMembersWithLicenseErrors and isArchived properties are an exception and are not returned in the $select query. Because the group resource supports extensions, you can also use the GET operation to get custom properties and extension data in a group instance.

Get-MgGroupAcceptedSender

Get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error.

Get-MgGroupAcceptedSenderByRef

Get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error.

Get-MgGroupById

Return the directory objects specified in a list of IDs. Some common uses for this function are to:

Get-MgGroupCalendarEventDelta

Get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar.

Get-MgGroupCalendarSchedule

Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period.

Get-MgGroupConversation

The group's conversations.

Get-MgGroupConversationThread

A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.

Get-MgGroupConversationThreadPost

Get posts from groups

Get-MgGroupConversationThreadPostAttachment

The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupConversationThreadPostExtension

The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupConversationThreadPostInReplyToAttachment

The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupConversationThreadPostInReplyToExtension

The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupConversationThreadPostInReplyToMention

Get mentions from groups

Get-MgGroupConversationThreadPostInReplyToMultiValueExtendedProperty

The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupConversationThreadPostInReplyToSingleValueExtendedProperty

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupConversationThreadPostMention

Get mentions from groups

Get-MgGroupConversationThreadPostMultiValueExtendedProperty

The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupConversationThreadPostSingleValueExtendedProperty

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupCreatedOnBehalfOf

The user (or application) that created the group. Note: This is not set if the user is an administrator. Read-only.

Get-MgGroupCreatedOnBehalfOfByRef

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupDelta

Invoke function delta

Get-MgGroupDriveItemActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupDriveItemDelta

Invoke function delta

Get-MgGroupDriveItemListItemActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupDriveListContentTypeCompatibleHubContentType

Invoke function getCompatibleHubContentTypes

Get-MgGroupDriveListItemActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupDriveListItemDelta

Invoke function delta

Get-MgGroupDriveRootActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupDriveRootDelta

Invoke function delta

Get-MgGroupDriveRootListItemActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupEndpoint

Endpoints for the group. Read-only. Nullable.

Get-MgGroupEventDelta

Get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar.

Get-MgGroupExtension

The collection of open extensions defined for the group. Read-only. Nullable.

Get-MgGroupLifecyclePolicy

Retrieve the properties and relationships of a groupLifecyclePolicies object.

Get-MgGroupLifecyclePolicyByGroup

Retrieves a list of groupLifecyclePolicy objects to which a group belongs.

Get-MgGroupMember

Direct members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName).

Get-MgGroupMemberByRef

Direct members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName).

Get-MgGroupMemberGroup

Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive.

Get-MgGroupMemberObject

Invoke action getMemberObjects

Get-MgGroupMemberOf

Groups and administrative units that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand.

Get-MgGroupMemberWithLicenseError

A list of group members with license errors from this group-based license assignment. Read-only.

Get-MgGroupOnenoteNotebookFromWebUrl

Retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365.

Get-MgGroupOnenoteRecentNotebook

Invoke function getRecentNotebooks

Get-MgGroupOwner

The owners of the group who can be users or service principals. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName).

Get-MgGroupOwnerByRef

The owners of the group who can be users or service principals. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName).

Get-MgGroupPermissionGrant

The permissions that have been granted for a group to a specific application. Supports $expand.

Get-MgGroupPermissionGrantById

Return the directory objects specified in a list of IDs. Some common uses for this function are to:

Get-MgGroupPermissionGrantMemberGroup

Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive.

Get-MgGroupPermissionGrantMemberObject

Invoke action getMemberObjects

Get-MgGroupPermissionGrantUserOwnedObject

Invoke action getUserOwnedObjects

Get-MgGroupPhoto

The group's profile photo.

Get-MgGroupPhotoContent

Get media content for the navigation property photo from groups

Get-MgGroupRejectedSender

Get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error.

Get-MgGroupRejectedSenderByRef

Get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list cannot post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error.

Get-MgGroupSetting

Settings that can govern this group's behavior, like whether members can invite guest users to the group. Nullable.

Get-MgGroupSiteActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupSiteApplicableContentTypeForList

Invoke function getApplicableContentTypesForList

Get-MgGroupSiteByPath

Invoke function getByPath

Get-MgGroupSiteContentTypeCompatibleHubContentType

Invoke function getCompatibleHubContentTypes

Get-MgGroupSiteDelta

Invoke function delta

Get-MgGroupSiteListContentTypeCompatibleHubContentType

Invoke function getCompatibleHubContentTypes

Get-MgGroupSiteListItemActivityByInterval

Invoke function getActivitiesByInterval

Get-MgGroupSiteListItemDelta

Invoke function delta

Get-MgGroupSitePageCanvaLayoutHorizontalSectionColumnWebpartPositionOfWebPart

Invoke action getPositionOfWebPart

Get-MgGroupSitePageCanvaLayoutVerticalSectionWebpartPositionOfWebPart

Invoke action getPositionOfWebPart

Get-MgGroupSitePageWebPartByPosition

Invoke action getWebPartsByPosition

Get-MgGroupSitePageWebPartPositionOfWebPart

Invoke action getPositionOfWebPart

Get-MgGroupThread

The group's conversation threads. Nullable.

Get-MgGroupThreadPost

Get posts from groups

Get-MgGroupThreadPostAttachment

The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupThreadPostExtension

The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupThreadPostInReplyToAttachment

The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupThreadPostInReplyToExtension

The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.

Get-MgGroupThreadPostInReplyToMention

Get mentions from groups

Get-MgGroupThreadPostInReplyToMultiValueExtendedProperty

The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupThreadPostInReplyToSingleValueExtendedProperty

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupThreadPostMention

Get mentions from groups

Get-MgGroupThreadPostMultiValueExtendedProperty

The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupThreadPostSingleValueExtendedProperty

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Get-MgGroupTransitiveMember

The direct and transitive members of a group. Nullable.

Get-MgGroupTransitiveMemberOf

The groups that a group is a member of, either directly and through nested membership. Nullable.

Get-MgGroupUserOwnedObject

Invoke action getUserOwnedObjects

Get-MgUserJoinedGroup

Get joinedGroups from users

Grant-MgGroupDriveItemPermission

Grant users access to a link represented by a [permission][].

Grant-MgGroupDriveRootPermission

Grant users access to a link represented by a [permission][].

Grant-MgGroupSitePermission

Grant users access to a link represented by a [permission][].

Invoke-MgAcceptGroupCalendarEvent

Accept the specified event in a user calendar.

Invoke-MgAcceptGroupCalendarEventTentatively

Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

Invoke-MgAcceptGroupEvent

Accept the specified event in a user calendar.

Invoke-MgAcceptGroupEventTentatively

Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

Invoke-MgBufferGroupSiteInformationProtectionDecrypt

Invoke action decryptBuffer

Invoke-MgBufferGroupSiteInformationProtectionEncrypt

Invoke action encryptBuffer

Invoke-MgCalendarGroupCalendar

Invoke function allowedCalendarSharingRoles

Invoke-MgCheckinGroupDriveItem

Check in a checked out driveItem resource, which makes the version of the document available to others.

Invoke-MgCheckinGroupDriveRoot

Check in a checked out driveItem resource, which makes the version of the document available to others.

Invoke-MgCheckoutGroupDriveItem

Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in.

Invoke-MgCheckoutGroupDriveRoot

Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in.

Invoke-MgDeclineGroupCalendarEvent

Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

Invoke-MgDeclineGroupEvent

Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times.

Invoke-MgDismissGroupCalendarEventReminder

Dismiss a reminder that has been triggered for an event in a user calendar.

Invoke-MgDismissGroupEventReminder

Dismiss a reminder that has been triggered for an event in a user calendar.

Invoke-MgExtractGroupDriveItemSensitivityLabel

Invoke action extractSensitivityLabels

Invoke-MgExtractGroupDriveRootSensitivityLabel

Invoke action extractSensitivityLabels

Invoke-MgExtractGroupSiteInformationProtectionPolicyLabel

Using the metadata that exists on an already-labeled piece of information, resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel.

Invoke-MgFollowGroupDriveItem

Follow a driveItem.

Invoke-MgFollowGroupDriveRoot

Follow a driveItem.

Invoke-MgForwardGroupCalendarEvent

This action allows the organizer or attendee of a meeting event to forward the \nmeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action \nalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's \ncopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account.

Invoke-MgForwardGroupConversationThreadPost

Forward a post to a recipient. You can specify both the parent conversation and thread in the request, \nor, you can specify just the parent thread without the parent conversation.

Invoke-MgForwardGroupConversationThreadPostInReplyTo

Forward a post to a recipient. You can specify both the parent conversation and thread in the request, \nor, you can specify just the parent thread without the parent conversation.

Invoke-MgForwardGroupEvent

This action allows the organizer or attendee of a meeting event to forward the \nmeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this action \nalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer's \ncopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account.

Invoke-MgForwardGroupThreadPost

Forward a post to a recipient. You can specify both the parent conversation and thread in the request, \nor, you can specify just the parent thread without the parent conversation.

Invoke-MgForwardGroupThreadPostInReplyTo

Forward a post to a recipient. You can specify both the parent conversation and thread in the request, \nor, you can specify just the parent thread without the parent conversation.

Invoke-MgGraphGroup

Calling this method will disable the current user to receive email notifications for this group about new posts, events, and files in that group. Supported for Microsoft 365 groups only.

Invoke-MgGraphGroupDrive

Invoke function sharedWithMe

Invoke-MgInviteGroupDriveItem

Sends a sharing invitation for a DriveItem.\nA sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared.

Invoke-MgInviteGroupDriveRoot

Sends a sharing invitation for a DriveItem.\nA sharing invitation provides permissions to the recipients and optionally sends an email to the recipients to notify them the item was shared.

Invoke-MgPreviewGroupDriveItem

Invoke action preview

Invoke-MgPreviewGroupDriveRoot

Invoke action preview

Invoke-MgPreviewGroupOnenotePage

Invoke function preview

Invoke-MgReauthorizeGroupDriveItemSubscription

Invoke action reauthorize

Invoke-MgReauthorizeGroupDriveListSubscription

Invoke action reauthorize

Invoke-MgReauthorizeGroupDriveRootSubscription

Invoke action reauthorize

Invoke-MgReauthorizeGroupSiteListSubscription

Invoke action reauthorize

Invoke-MgRecentGroupDrive

Invoke function recent

Invoke-MgRenewGroup

Renews a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.

Invoke-MgRenewGroupLifecyclePolicy

Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.

Invoke-MgReplyGroupConversationThread

Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation \nin the request, or, you can specify just the thread without the parent conversation.

Invoke-MgReplyGroupConversationThreadPost

Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions.

Invoke-MgReplyGroupConversationThreadPostInReplyTo

Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions.

Invoke-MgReplyGroupThread

Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation \nin the request, or, you can specify just the thread without the parent conversation.

Invoke-MgReplyGroupThreadPost

Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions.

Invoke-MgReplyGroupThreadPostInReplyTo

Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions.

Invoke-MgSignGroupSiteInformationProtectionDigest

Invoke action signDigest

Invoke-MgSnoozeGroupCalendarEventReminder

Postpone a reminder for an event in a user calendar until a new time.

Invoke-MgSnoozeGroupEventReminder

Postpone a reminder for an event in a user calendar until a new time.

Invoke-MgSubscribeGroupByMail

Calling this method will enable the current user to receive email notifications for this group, about new posts, events, and files in that group. Supported for Microsoft 365 groups only.

Invoke-MgUnfollowGroupDriveItem

Unfollow a driveItem.

Invoke-MgUnfollowGroupDriveRoot

Unfollow a driveItem.

Join-MgGroupDriveListContentTypeWithHubSite

Associate a [content type][contentType] with a list of hub sites.

Join-MgGroupSiteContentTypeWithHubSite

Associate a [content type][contentType] with a list of hub sites.

Join-MgGroupSiteListContentTypeWithHubSite

Associate a [content type][contentType] with a list of hub sites.

New-MgGroup

Create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team.

New-MgGroupAcceptedSenderByRef

Create new navigation property ref to acceptedSenders for groups

New-MgGroupConversation

Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions.

New-MgGroupConversationThread

Create new navigation property to threads for groups

New-MgGroupConversationThreadPostAttachment

Create new navigation property to attachments for groups

New-MgGroupConversationThreadPostAttachmentUploadSession

Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

New-MgGroupConversationThreadPostExtension

Create new navigation property to extensions for groups

New-MgGroupConversationThreadPostInReplyToAttachment

Create new navigation property to attachments for groups

New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession

Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

New-MgGroupConversationThreadPostInReplyToExtension

Create new navigation property to extensions for groups

New-MgGroupConversationThreadPostInReplyToMention

Create new navigation property to mentions for groups

New-MgGroupConversationThreadPostInReplyToMultiValueExtendedProperty

Create new navigation property to multiValueExtendedProperties for groups

New-MgGroupConversationThreadPostInReplyToSingleValueExtendedProperty

Create new navigation property to singleValueExtendedProperties for groups

New-MgGroupConversationThreadPostMention

Create new navigation property to mentions for groups

New-MgGroupConversationThreadPostMultiValueExtendedProperty

Create new navigation property to multiValueExtendedProperties for groups

New-MgGroupConversationThreadPostSingleValueExtendedProperty

Create new navigation property to singleValueExtendedProperties for groups

New-MgGroupDriveItemLink

You can use createLink action to share a driveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors.

New-MgGroupDriveItemListItemLink

Create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in.

New-MgGroupDriveItemUploadSession

Create an upload session to allow your app to upload files up to the maximum file size. An upload session allows your app to upload ranges of the file in sequential API requests, which allows the transfer to be resumed if a connection is dropped while the upload is in progress. To upload a file using an upload session:

New-MgGroupDriveListItemLink

Create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in.

New-MgGroupDriveRootLink

You can use createLink action to share a driveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors.

New-MgGroupDriveRootListItemLink

Create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in.

New-MgGroupDriveRootUploadSession

Create an upload session to allow your app to upload files up to the maximum file size. An upload session allows your app to upload ranges of the file in sequential API requests, which allows the transfer to be resumed if a connection is dropped while the upload is in progress. To upload a file using an upload session:

New-MgGroupEndpoint

Create new navigation property to endpoints for groups

New-MgGroupExtension

Create new navigation property to extensions for groups

New-MgGroupLifecyclePolicy

Creates a new groupLifecyclePolicy.

New-MgGroupMember

Add a member to an Office 365 group or security group through the members navigation property.

New-MgGroupMemberByRef

Create new navigation property ref to members for groups

New-MgGroupOwner

Add an owner to an Office 365 group or security group through the owners navigation property.

New-MgGroupOwnerByRef

Create new navigation property ref to owners for groups

New-MgGroupPermissionGrant

Create new navigation property to permissionGrants for groups

New-MgGroupRejectedSenderByRef

Create new navigation property ref to rejectedSenders for groups

New-MgGroupSetting

Create a new setting based on the templates available in directorySettingTemplates. These settings can be at the tenant-level or at the group level. Group settings apply to only Microsoft 365 groups. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.

New-MgGroupSiteListItemLink

Create a sharing link for a listItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application.\nIf a sharing link of the specified type already exists for the app, this action will return the existing sharing link. listItem resources inherit sharing permissions from the list the item resides in.

New-MgGroupThread

Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group. Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation.

New-MgGroupThreadPostAttachment

Create new navigation property to attachments for groups

New-MgGroupThreadPostAttachmentUploadSession

Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

New-MgGroupThreadPostExtension

Create new navigation property to extensions for groups

New-MgGroupThreadPostInReplyToAttachment

Create new navigation property to attachments for groups

New-MgGroupThreadPostInReplyToAttachmentUploadSession

Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

New-MgGroupThreadPostInReplyToExtension

Create new navigation property to extensions for groups

New-MgGroupThreadPostInReplyToMention

Create new navigation property to mentions for groups

New-MgGroupThreadPostInReplyToMultiValueExtendedProperty

Create new navigation property to multiValueExtendedProperties for groups

New-MgGroupThreadPostInReplyToSingleValueExtendedProperty

Create new navigation property to singleValueExtendedProperties for groups

New-MgGroupThreadPostMention

Create new navigation property to mentions for groups

New-MgGroupThreadPostMultiValueExtendedProperty

Create new navigation property to multiValueExtendedProperties for groups

New-MgGroupThreadPostSingleValueExtendedProperty

Create new navigation property to singleValueExtendedProperties for groups

Publish-MgGroupDriveListContentType

Publishes a [contentType][] present in a content type hub site.

Publish-MgGroupSiteContentType

Publishes a [contentType][] present in a content type hub site.

Publish-MgGroupSiteListContentType

Publishes a [contentType][] present in a content type hub site.

Publish-MgGroupSitePage

Invoke action publish

Remove-MgGroup

Deletes a group. When deleted, Microsoft 365 groups are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This isn't applicable to Security groups and Distribution groups which are permanently deleted immediately. To learn more, see deletedItems.

Remove-MgGroupAcceptedSenderByRef

Delete ref of navigation property acceptedSenders for groups

Remove-MgGroupConversation

Delete navigation property conversations for groups

Remove-MgGroupConversationThread

Delete navigation property threads for groups

Remove-MgGroupConversationThreadPostAttachment

Delete navigation property attachments for groups

Remove-MgGroupConversationThreadPostExtension

Delete navigation property extensions for groups

Remove-MgGroupConversationThreadPostInReplyToAttachment

Delete navigation property attachments for groups

Remove-MgGroupConversationThreadPostInReplyToExtension

Delete navigation property extensions for groups

Remove-MgGroupConversationThreadPostInReplyToMention

Delete navigation property mentions for groups

Remove-MgGroupConversationThreadPostInReplyToMultiValueExtendedProperty

Delete navigation property multiValueExtendedProperties for groups

Remove-MgGroupConversationThreadPostInReplyToSingleValueExtendedProperty

Delete navigation property singleValueExtendedProperties for groups

Remove-MgGroupConversationThreadPostMention

Delete navigation property mentions for groups

Remove-MgGroupConversationThreadPostMultiValueExtendedProperty

Delete navigation property multiValueExtendedProperties for groups

Remove-MgGroupConversationThreadPostSingleValueExtendedProperty

Delete navigation property singleValueExtendedProperties for groups

Remove-MgGroupCreatedOnBehalfOfByRef

The collection of single-value extended properties defined for the post. Read-only. Nullable.

Remove-MgGroupEndpoint

Delete navigation property endpoints for groups

Remove-MgGroupExtension

Delete navigation property extensions for groups

Remove-MgGroupFavorite

Remove the group from the list of the current user's favorite groups. Supported for Microsoft 365 groups only.

Remove-MgGroupFromLifecyclePolicy

Invoke action removeGroup

Remove-MgGroupLifecyclePolicy

Delete a groupLifecyclePolicy.

Remove-MgGroupMemberByRef

Delete ref of navigation property members for groups

Remove-MgGroupOwnerByRef

Delete ref of navigation property owners for groups

Remove-MgGroupPermissionGrant

Delete navigation property permissionGrants for groups

Remove-MgGroupRejectedSenderByRef

Delete ref of navigation property rejectedSenders for groups

Remove-MgGroupSetting

Delete navigation property settings for groups

Remove-MgGroupSite

Unfollow a user's site or multiple sites.

Remove-MgGroupThread

Delete navigation property threads for groups

Remove-MgGroupThreadPostAttachment

Delete navigation property attachments for groups

Remove-MgGroupThreadPostExtension

Delete navigation property extensions for groups

Remove-MgGroupThreadPostInReplyToAttachment

Delete navigation property attachments for groups

Remove-MgGroupThreadPostInReplyToExtension

Delete navigation property extensions for groups

Remove-MgGroupThreadPostInReplyToMention

Delete navigation property mentions for groups

Remove-MgGroupThreadPostInReplyToMultiValueExtendedProperty

Delete navigation property multiValueExtendedProperties for groups

Remove-MgGroupThreadPostInReplyToSingleValueExtendedProperty

Delete navigation property singleValueExtendedProperties for groups

Remove-MgGroupThreadPostMention

Delete navigation property mentions for groups

Remove-MgGroupThreadPostMultiValueExtendedProperty

Delete navigation property multiValueExtendedProperties for groups

Remove-MgGroupThreadPostSingleValueExtendedProperty

Delete navigation property singleValueExtendedProperties for groups

Reset-MgGroupUnseenCount

Reset the unseenCount of all the posts that the current user has not seen since their last visit. Supported for Microsoft 365 groups only.

Restore-MgGroupDriveItem

Restore a driveItem that has been deleted and is currently in the recycle bin.

Restore-MgGroupDriveItemListItemDocumentSetVersion

Restore a document set version.

Restore-MgGroupDriveItemListItemVersion

Invoke action restoreVersion

Restore-MgGroupDriveItemVersion

Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file.

Restore-MgGroupDriveListItemDocumentSetVersion

Restore a document set version.

Restore-MgGroupDriveListItemVersion

Invoke action restoreVersion

Restore-MgGroupDriveRoot

Restore a driveItem that has been deleted and is currently in the recycle bin.

Restore-MgGroupDriveRootListItemDocumentSetVersion

Restore a document set version.

Restore-MgGroupDriveRootListItemVersion

Invoke action restoreVersion

Restore-MgGroupDriveRootVersion

Restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file.

Restore-MgGroupSiteListItemDocumentSetVersion

Restore a document set version.

Restore-MgGroupSiteListItemVersion

Invoke action restoreVersion

Revoke-MgGroupDriveItemPermissionGrant

Revoke access to a [listItem][] or [driveItem][] granted via a sharing link by removing the specified [recipient][] from the link.

Revoke-MgGroupDriveRootPermissionGrant

Revoke access to a [listItem][] or [driveItem][] granted via a sharing link by removing the specified [recipient][] from the link.

Revoke-MgGroupSitePermissionGrant

Revoke access to a [listItem][] or [driveItem][] granted via a sharing link by removing the specified [recipient][] from the link.

Search-MgGroupDrive

Invoke function search

Search-MgGroupDriveItem

Invoke function search

Search-MgGroupDriveRoot

Invoke function search

Set-MgGroupDriveItemSensitivityLabel

Invoke action assignSensitivityLabel

Set-MgGroupDriveRootSensitivityLabel

Invoke action assignSensitivityLabel

Set-MgGroupLicense

Add or remove licenses on the group. Licenses assigned to the group will be assigned to all users in the group. To learn more about group-based licensing, see What is group-based licensing in Azure Active Directory. To get the subscriptions available in the directory, perform a GET subscribedSkus request.

Set-MgGroupPhotoContent

Update media content for the navigation property photo in groups

Stop-MgGroupCalendarEvent

This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting \nby providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the following\nerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and lets\nthe organizer send a custom message to the attendees about the cancellation.

Stop-MgGroupEvent

This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting \nby providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the following\nerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and lets\nthe organizer send a custom message to the attendees about the cancellation.

Test-MgGroupDriveItemPermission

Invoke action validatePermission

Test-MgGroupDriveListContentTypePublished

Invoke function isPublished

Test-MgGroupDriveRootPermission

Invoke action validatePermission

Test-MgGroupDynamicMembership

Evaluate whether a user or device is or would be a member of a dynamic group. The membership rule is returned along with other details that were used in the evaluation. You can complete this operation in the following ways:

Test-MgGroupDynamicMembershipRule

Evaluate whether a user or device is or would be a member of a dynamic group. The membership rule is returned along with other details that were used in the evaluation. You can complete this operation in the following ways:

Test-MgGroupPermissionGrantProperty

Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. For validating properties of an existing group, use the validateProperties function for groups. The following validations are performed for the display name and mail nickname properties: \n1. Validate the prefix and suffix naming policy\n2. Validate the custom banned words policy\n3. Validate the mail nickname is unique This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

Test-MgGroupProperty

Validate if a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use the API to determine if a display name or mail nickname is valid before trying to update a Microsoft 365 group. For validating properties before creating a group, use the validateProperties function for directory objects. The following validations are performed for the display name and mail nickname properties: This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

Test-MgGroupSiteContentTypePublished

Invoke function isPublished

Test-MgGroupSiteInformationProtectionDataLossPreventionPolicy

Invoke action evaluate

Test-MgGroupSiteInformationProtectionPolicyLabelApplication

Compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key/value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following:

Test-MgGroupSiteInformationProtectionPolicyLabelClassificationResult

Using classification results, compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide contentInfo, which includes existing content metadata key/value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following:

Test-MgGroupSiteInformationProtectionPolicyLabelRemoval

Indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key/value pairs, the API returns an informationProtectionAction that contains some combination of one of more of the following:

Test-MgGroupSiteInformationProtectionSensitivityLabel

Invoke action evaluate

Test-MgGroupSiteInformationProtectionSensitivityLabelSublabel

Invoke action evaluate

Test-MgGroupSiteListContentTypePublished

Invoke function isPublished

Unpublish-MgGroupDriveListContentType

Unpublish a [contentType][] from a content type hub site.

Unpublish-MgGroupSiteContentType

Unpublish a [contentType][] from a content type hub site.

Unpublish-MgGroupSiteListContentType

Unpublish a [contentType][] from a content type hub site.

Update-MgGroup

Update the properties of a group object.

Update-MgGroupConversationThread

Update the navigation property threads in groups

Update-MgGroupConversationThreadPost

Update the navigation property posts in groups

Update-MgGroupConversationThreadPostExtension

Update the navigation property extensions in groups

Update-MgGroupConversationThreadPostInReplyToExtension

Update the navigation property extensions in groups

Update-MgGroupConversationThreadPostInReplyToMultiValueExtendedProperty

Update the navigation property multiValueExtendedProperties in groups

Update-MgGroupConversationThreadPostInReplyToSingleValueExtendedProperty

Update the navigation property singleValueExtendedProperties in groups

Update-MgGroupConversationThreadPostMultiValueExtendedProperty

Update the navigation property multiValueExtendedProperties in groups

Update-MgGroupConversationThreadPostSingleValueExtendedProperty

Update the navigation property singleValueExtendedProperties in groups

Update-MgGroupEndpoint

Update the navigation property endpoints in groups

Update-MgGroupExtension

Update the navigation property extensions in groups

Update-MgGroupLifecyclePolicy

Update the properties of a groupLifecyclePolicygroupLifecyclePolicy resource type object.

Update-MgGroupOnenotePageContent

Invoke action onenotePatchContent

Update-MgGroupPermissionGrant

Update the navigation property permissionGrants in groups

Update-MgGroupPhoto

Update the navigation property photo in groups

Update-MgGroupSetting

Update the navigation property settings in groups

Update-MgGroupThread

Update the navigation property threads in groups

Update-MgGroupThreadPost

Update the navigation property posts in groups

Update-MgGroupThreadPostExtension

Update the navigation property extensions in groups

Update-MgGroupThreadPostInReplyToExtension

Update the navigation property extensions in groups

Update-MgGroupThreadPostInReplyToMultiValueExtendedProperty

Update the navigation property multiValueExtendedProperties in groups

Update-MgGroupThreadPostInReplyToSingleValueExtendedProperty

Update the navigation property singleValueExtendedProperties in groups

Update-MgGroupThreadPostMultiValueExtendedProperty

Update the navigation property multiValueExtendedProperties in groups

Update-MgGroupThreadPostSingleValueExtendedProperty

Update the navigation property singleValueExtendedProperties in groups