New-AzureADMSGroupLifecyclePolicy

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 "[email protected]"

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 "[email protected]"

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
Position:Named
Default value:None
Required:True
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
Position:Named
Default value:None
Required:True
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. Please note that this parameter is case sensitive - "none" or "NONE" will not be recognized as valid values.

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

Inputs

None

Outputs

Object