Create or update the ownerlessGroupPolicy for the tenant.
If the policy doesn't exist, it creates a new one; if the policy exists, it updates the existing policy.
To disable the policy, set isEnabled to false.
Setting isEnabled to false clears the values of all other policy parameters.
Create or update the ownerlessGroupPolicy for the tenant.
If the policy doesn't exist, it creates a new one; if the policy exists, it updates the existing policy.
To disable the policy, set isEnabled to false.
Setting isEnabled to false clears the values of all other policy parameters.
Indicates whether the ownerless group policy is enabled in the tenant.
Setting this property to false clears the values of all other policy parameters.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-MaxMembersToNotify
The maximum number of members to notify.
Value range is 0-90.
Members are prioritized by recent group activity (most active first).
If there aren't enough active members to fill the limit, remaining slots are filled with other eligible group members from the directory.
Parameter properties
Type:
System.Int64
Default value:
0
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-NotificationDurationInWeeks
The number of weeks for the notification duration.
Value range is 1-7.
Parameter properties
Type:
System.Int64
Default value:
0
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-PolicyWebUrl
The URL to the policy documentation.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
UpdateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Proxy
The URI for the proxy server to use
Parameter properties
Type:
System.Uri
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ProxyCredential
Credentials for a proxy server to use for the remote call
Parameter properties
Type:
System.Management.Automation.PSCredential
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ProxyUseDefaultCredentials
Use the default credentials for the proxy
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Aliases:
RHV
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-TargetOwners
targetOwners
To construct, see NOTES section for TARGETOWNERS properties and create a hash table.
Runs the command in a mode that only reports what would happen without performing the actions.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
To create the parameters described below, construct a hash table containing the appropriate properties.
For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IMicrosoftGraphOwnerlessGroupPolicy>: ownerlessGroupPolicy
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[EmailInfo <IMicrosoftGraphEmailDetails>]: emailDetails
[(Any) <Object>]: This indicates any property can be added to this object.
[Body <String>]: The body content of the notification email in plain text format.
[SenderEmailAddress <String>]: The email address of the sender for notification emails.
Shared mailboxes aren't supported.
[Subject <String>]: The subject line of the notification email.
[EnabledGroupIds <String[]>]: The collection of IDs for groups to which the policy is enabled.
If empty, the policy is enabled for all groups in the tenant.
[IsEnabled <Boolean?>]: Indicates whether the ownerless group policy is enabled in the tenant.
Setting this property to false clears the values of all other policy parameters.
[MaxMembersToNotify <Int64?>]: The maximum number of members to notify.
Value range is 0-90.
Members are prioritized by recent group activity (most active first).
If there aren't enough active members to fill the limit, remaining slots are filled with other eligible group members from the directory.
[NotificationDurationInWeeks <Int64?>]: The number of weeks for the notification duration.
Value range is 1-7.
[PolicyWebUrl <String>]: The URL to the policy documentation.
[TargetOwners <IMicrosoftGraphTargetOwners>]: targetOwners
[(Any) <Object>]: This indicates any property can be added to this object.
[NotifyMembers <String>]: notifyMembers
[SecurityGroups <String[]>]: The collection of IDs for security groups used for allowing or blocking filtering.
When notifyMembers is all, all members are eligible for ownership and this collection can be empty.
When notifyMembers is allowSelected, only members in these security groups are eligible.
When notifyMembers is blockSelected, members in these security groups are excluded.
EMAILINFO <IMicrosoftGraphEmailDetails>: emailDetails
[(Any) <Object>]: This indicates any property can be added to this object.
[Body <String>]: The body content of the notification email in plain text format.
[SenderEmailAddress <String>]: The email address of the sender for notification emails.
Shared mailboxes aren't supported.
[Subject <String>]: The subject line of the notification email.
TARGETOWNERS <IMicrosoftGraphTargetOwners>: targetOwners
[(Any) <Object>]: This indicates any property can be added to this object.
[NotifyMembers <String>]: notifyMembers
[SecurityGroups <String[]>]: The collection of IDs for security groups used for allowing or blocking filtering.
When notifyMembers is all, all members are eligible for ownership and this collection can be empty.
When notifyMembers is allowSelected, only members in these security groups are eligible.
When notifyMembers is blockSelected, members in these security groups are excluded.