Skip to content

Latest commit

 

History

History
104 lines (79 loc) · 2.65 KB

New-AzureADMSGroupLifecyclePolicy.md

File metadata and controls

104 lines (79 loc) · 2.65 KB
external help file Module Name online version schema ms.service ms.topic ms.date ms.author manager author ms.reviewer
Microsoft.Open.MS.GraphV10.PowerShell.dll-Help.xml
AzureAD
2.0.0
active-directory
reference
01/19/2024
eunicewaweru
CelesteDG
msewaweru
stevemutungi

New-AzureADMSGroupLifecyclePolicy

SYNOPSIS

Creates a new groupLifecyclePolicy

SYNTAX

New-AzureADMSGroupLifecyclePolicy -GroupLifetimeInDays <Int32> -ManagedGroupTypes <String>
 -AlternateNotificationEmails <String> [<CommonParameters>]

DESCRIPTION

Creates a new groupLifecyclePolicy in Azure Active Directory

EXAMPLES

Example 1

PS C:\> New-AzureADMSGroupLifecyclePolicy -GroupLifetimeInDays 99 -ManagedGroupTypes "Selected" -AlternateNotificationEmails "example@contoso.com"

This will create a a new groupLifecyclePolicy setting the group lifetime to 99 days for a selected set of Office 365 groups and send renewal notification emails to groups that have no owners to "example@contoso.com"

PARAMETERS

-AlternateNotificationEmails

Notification emails for groups that have no owners will be sent to these email addresses. List of email addresses separated by a ";".

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GroupLifetimeInDays

The number of days a group can exist before it needs to be renewed

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ManagedGroupTypes

This parameter allows the admin to select which office 365 groups the policy will apply to. "None" will create the policy in a disabled state. "All" will apply the policy to every Office 365 group in the tenant. "Selected" will allow the admin to choose specific Office 365 groups that the policy will apply to.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

NOTES

See the migration guide for New-AzureADMSGroupLifecyclePolicy to the Microsoft Graph PowerShell.

INPUTS

None

OUTPUTS

System.Object

RELATED LINKS