CmdID / PowerShell / Cmdlets / Update
Update-MgGroup
Create a new group object if it doesn't exist, or update the properties of an existing group object.\rYou can create or update the following types of group: By default, this operation returns only a subset of the proper… Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 95 parameters Its page in the reference
Parameters
Show its 95 parameters
-AcceptedSendersThe list of users or groups allowed to create posts or calendar events in this group.-AccessTypegroupAccessType-AdditionalPropertiesAdditional Parameters-AllowExternalSendersIndicates if people external to the organization can send messages to the group.-AppRoleAssignmentsRepresents the app roles granted to a group for an application.-AssignedLabelsThe list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group or a cloud security group.-AssignedLicensesThe licenses that are assigned to the group.-AutoSubscribeNewMembersIndicates if new members added to the group are autosubscribed to receive email notifications.-BodyParametergroup To construct, see NOTES section for BODYPARAMETER properties and create a hash table.-BreakWait for .NET debugger to attach-Calendarcalendar To construct, see NOTES section for CALENDAR properties and create a hash table.-CalendarViewThe calendar view for the calendar.-ClassificationDescribes a classification for the group (such as low, medium, or high business impact).-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ConversationsThe group's conversations.-CreatedDateTimeTimestamp of when the group was created.-CreatedOnBehalfOfdirectoryObject To construct, see NOTES section for CREATEDONBEHALFOF properties and create a hash table.-DeletedDateTimeDate and time when this object was deleted.-DescriptionAn optional description for the group.-DisplayNameThe display name for the group.-Drivedrive To construct, see NOTES section for DRIVE properties and create a hash table.-DrivesThe group's drives.-EventsThe group's calendar events.-ExpirationDateTimeTimestamp of when the group is set to expire.-ExtensionsThe collection of open extensions defined for the group.-GroupIdThe unique identifier of group-GroupLifecyclePoliciesThe collection of lifecycle policies for this group.-GroupTypesSpecifies the group type and its membership.-HasMembersWithLicenseErrorsIndicates whether there are members in this group that have license errors from its group-based license assignment.-HeadersOptional headers that will be added to the request.-HideFromAddressListsTrue if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, f…-HideFromOutlookClientsTrue if the group isn't displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false.-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline-IdThe unique identifier for an entity.-InfoCatalogs-InputObjectIdentity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.-IsArchivedWhen a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API.-IsAssignableToRoleIndicates whether this group can be assigned to a Microsoft Entra role.-IsFavoriteIndicates whether the user marked the group as favorite.-IsManagementRestrictedIndicates whether the group is a member of a restricted management administrative unit.-IsSubscribedByMailIndicates whether the signed-in user is subscribed to receive email conversations.-LicenseProcessingStatelicenseProcessingState To construct, see NOTES section for LICENSEPROCESSINGSTATE properties and create a hash table.-MailThe SMTP address for the group, for example, 'serviceadmins@contoso.com'.-MailEnabledSpecifies whether the group is mail-enabled.-MailNicknameThe mail alias for the group, unique for Microsoft 365 groups in the organization.-MemberOfGroups that this group is a member of.-MembersThe members of this group, who can be users, devices, other groups, or service principals.-MembershipRuleThe rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership).-MembershipRuleProcessingStateIndicates whether the dynamic membership processing is on or paused.-MembersWithLicenseErrorsA list of group members with license errors from this group-based license assignment.-Onenoteonenote To construct, see NOTES section for ONENOTE properties and create a hash table.-OnPremisesDomainNameContains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory.-OnPremisesExtensionAttributesonPremisesExtensionAttributes To construct, see NOTES section for ONPREMISESEXTENSIONATTRIBUTES properties and create a hash table.-OnPremisesLastSyncDateTimeIndicates the last time at which the group was synced with the on-premises directory.-OnPremisesNetBiosNameContains the on-premises netBios name synchronized from the on-premises directory.-OnPremisesProvisioningErrorsErrors when using Microsoft synchronization product during provisioning.-OnPremisesSamAccountNameContains the on-premises SAM account name synchronized from the on-premises directory.-OnPremisesSecurityIdentifierContains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud.-OnPremisesSyncBehavioronPremisesSyncBehavior To construct, see NOTES section for ONPREMISESSYNCBEHAVIOR properties and create a hash table.-OnPremisesSyncEnabledtrue if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from…-OrganizationId-OwnersThe owners of the group who can be users or service principals.-PermissionGrantsTo construct, see NOTES section for PERMISSIONGRANTS properties and create a hash table.-PhotoprofilePhoto To construct, see NOTES section for PHOTO properties and create a hash table.-PhotosThe profile photos owned by the group.-PlannerplannerGroup To construct, see NOTES section for PLANNER properties and create a hash table.-PreferredDataLocationThe preferred data location for the Microsoft 365 group.-PreferredLanguageThe preferred language for a Microsoft 365 group.-ProxyThe URI for the proxy server to use-ProxyAddressesEmail addresses for the group that direct to the same group mailbox.-ProxyCredentialCredentials for a proxy server to use for the remote call-ProxyUseDefaultCredentialsUse the default credentials for the proxy-RejectedSendersThe list of users or groups not allowed to create posts or calendar events in this group.-RenewedDateTimeTimestamp of when the group was last renewed.-ResourceBehaviorOptionsSpecifies the group behaviors that can be set for a Microsoft 365 group during creation.-ResourceProvisioningOptionsSpecifies the group resources that are associated with the Microsoft 365 group.-ResponseHeadersVariable, -RHVOptional Response Headers Variable.-SecurityEnabledSpecifies whether the group is a security group.-SecurityIdentifierSecurity identifier of the group, used in Windows scenarios.-ServiceProvisioningErrorsErrors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object.-SettingsSettings that can govern this group's behavior, like whether members can invite guests to the group.-SitesThe list of SharePoint sites in this group.-Teamteam To construct, see NOTES section for TEAM properties and create a hash table.-ThemeSpecifies a Microsoft 365 group's color theme.-ThreadsThe group's conversation threads.-TransitiveMemberOfThe groups that a group is a member of, either directly or through nested membership.-TransitiveMembersThe direct and transitive members of a group.-UniqueNameThe unique identifier that can be assigned to a group and used as an alternate key.-UnseenConversationsCountCount of conversations that have had one or more new posts delivered since the signed-in user's last visit to the group.-UnseenCountCount of conversations that have received new posts since the signed-in user last visited the group.-UnseenMessagesCountCount of new posts that have been delivered to the group's conversations since the signed-in user's last visit to the group.-VisibilitySpecifies the group join policy and group content visibility for groups.-WelcomeMessageEnabled-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.