Skip to main content

group_lifecycle_policies

Creates, updates, deletes, gets or lists a group_lifecycle_policies resource.

Overview

Namegroup_lifecycle_policies
TypeResource
Identra_id.groups.group_lifecycle_policies

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
alternateNotificationEmailsstringList of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon.
groupLifetimeInDaysnumber (int32)Number of days before a group expires and needs to be renewed. Once renewed, the group expiration is extended by the number of days defined.
managedGroupTypesstringThe group type for which the expiration policy applies. Possible values are All, Selected or None.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectgroup_id, group_lifecycle_policy_idThe collection of lifecycle policies for this group. Read-only. Nullable.
listselectgroup_idRetrieves a list of groupLifecyclePolicy objects to which a group belongs.
insertinsertgroup_id
updateupdategroup_id, group_lifecycle_policy_id
deletedeletegroup_id, group_lifecycle_policy_idIf-Match
add_groupexecgroup_id, group_lifecycle_policy_idAdd a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected.
remove_groupexecgroup_id, group_lifecycle_policy_idRemoves a group from a lifecycle policy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
group_idstringThe unique identifier of group
group_lifecycle_policy_idstringThe unique identifier of groupLifecyclePolicy
If-MatchstringETag

SELECT examples

The collection of lifecycle policies for this group. Read-only. Nullable.

SELECT
id,
alternateNotificationEmails,
groupLifetimeInDays,
managedGroupTypes
FROM entra_id.groups.group_lifecycle_policies
WHERE group_id = '{{ group_id }}' -- required
AND group_lifecycle_policy_id = '{{ group_lifecycle_policy_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.groups.group_lifecycle_policies (
id,
alternateNotificationEmails,
groupLifetimeInDays,
managedGroupTypes,
group_id
)
SELECT
'{{ id }}',
'{{ alternateNotificationEmails }}',
{{ groupLifetimeInDays }},
'{{ managedGroupTypes }}',
'{{ group_id }}'
RETURNING
id,
alternateNotificationEmails,
groupLifetimeInDays,
managedGroupTypes
;

UPDATE examples

No description available.

UPDATE entra_id.groups.group_lifecycle_policies
SET
id = '{{ id }}',
alternateNotificationEmails = '{{ alternateNotificationEmails }}',
groupLifetimeInDays = {{ groupLifetimeInDays }},
managedGroupTypes = '{{ managedGroupTypes }}'
WHERE
group_id = '{{ group_id }}' --required
AND group_lifecycle_policy_id = '{{ group_lifecycle_policy_id }}' --required
RETURNING
id,
alternateNotificationEmails,
groupLifetimeInDays,
managedGroupTypes;

DELETE examples

No description available.

DELETE FROM entra_id.groups.group_lifecycle_policies
WHERE group_id = '{{ group_id }}' --required
AND group_lifecycle_policy_id = '{{ group_lifecycle_policy_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Add a group to a groupLifecyclePolicy. This action is supported only if the managedGroupTypes property of the policy is set to Selected.

EXEC entra_id.groups.group_lifecycle_policies.add_group
@group_id='{{ group_id }}' --required,
@group_lifecycle_policy_id='{{ group_lifecycle_policy_id }}' --required
@@json=
'{
"groupId": "{{ groupId }}"
}'
;