< Back

New-Groups_GroupLifecyclePolicies

Sat Jan 18, 2020 12:30 pm

NAME New-Groups_GroupLifecyclePolicies



SYNOPSIS

Creates a "microsoft.graph.groupLifecyclePolicy" object.





SYNTAX

New-Groups_GroupLifecyclePolicies -groupId <string> [-alternateNotificationEmails <string>] [-groupLifetimeInDays

<int>] [-managedGroupTypes <string>] [<CommonParameters>]



New-Groups_GroupLifecyclePolicies -groupId <string> -ODataType <string> [-alternateNotificationEmails <string>]

[-groupLifetimeInDays <int>] [-managedGroupTypes <string>] [<CommonParameters>]





DESCRIPTION

Adds a "microsoft.graph.groupLifecyclePolicy" object to the "groupLifecyclePolicies" collection.



Graph call: POST ~/groups/{groupId}/groupLifecyclePolicies





PARAMETERS

-groupId <string>

A required ID for referencing a "microsoft.graph.group" object in the "groups" collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-groupLifetimeInDays <int>

The "groupLifetimeInDays" property, of type "Edm.Int32".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



Required? false

Position? named

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-managedGroupTypes <string>

The "managedGroupTypes" property, of type "Edm.String".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-alternateNotificationEmails <string>

The "alternateNotificationEmails" property, of type "Edm.String".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ODataType <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-@odata.type <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



This is an alias of the ODataType parameter.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

A required ID for referencing a "microsoft.graph.group" object in the "groups" collection.



System.Int32

The "groupLifetimeInDays" property, of type "Edm.Int32".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



System.String

The "managedGroupTypes" property, of type "Edm.String".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



System.String

The "alternateNotificationEmails" property, of type "Edm.String".



This property is on the "microsoft.graph.groupLifecyclePolicy" type.



System.String

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.





OUTPUTS





RELATED LINKS

GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK