Closed
Description
In Entra Identity Governance entitlement management, it is no longer necessary when creating an assignment request to supply a start date. If the policy has a custom start and end dates, the policy's settings will be authoritative. Therefore this code in the custom cmdlet that supplied the current date as a start date should be removed, so that the policy's defaults apply if the caller does not specify an explicit start date.
diff --git a/src/Identity.Governance/Identity.Governance/custom/New-MgEntitlementManagementAccessPackageAssignment.ps1 b/src/Identity.Governance/Identity.Governance/custom/New-MgEntitlementManagementAccessPackageAssignment.ps1
index fd872d8c5..847a155d8 100644
--- a/src/Identity.Governance/Identity.Governance/custom/New-MgEntitlementManagementAccessPackageAssignment.ps1
+++ b/src/Identity.Governance/Identity.Governance/custom/New-MgEntitlementManagementAccessPackageAssignment.ps1
@@ -155,12 +155,6 @@ begin {
$notDelivered = 0
$nonUsers = 0
- if ($null -eq $StartDate -or $StartDate.Length -eq 0) {
- $now = Get-Date
- $ts = Get-Date $now.ToUniversalTime() -format "s"
- $StartDate = $ts + "Z"
- }
-
if ($null -eq $Justification) {
$Justification = ""
}