Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the assignment from AssignmentsWithDeprovisioningDelay does not have MarkedForDeprovisioningDate - it will be removed from PrimaryAssignments collection and added to AAAAssignmentIdsToMarkForDeprovisioning AssignmentsToMarkForDeprovisioning.

Also if it does have MarkedForDeprovisioningDate but it’s time did not come - it will be removed from PrimaryAssignments collection.

...

Check for Same Assignment

There is no action for Resource Assignemnts from PrimaryAssignments that are also assigned by other valid assignment are moved to ResourceAssignmentsToDelete.

Check if the assignment is the same:

...

Otherwise it will be deleted from database.

Mark assignments to deprovisioning

Resource assignments gathered in AssignmentsToMarkForDeprovisioning will be checked again if MarkedForDeprovisioningDate is empty and will get MarkedForDeprovisioningDate set to NOW.

Cleanup

Cleanup runs for resource assignments gathered in ResourceAssignmentsToDelete and ones that are for unprovisioned Identity (filter below)

GetAssignmentsToDeleteFromUnprovisionedIdentities

Condition

AssignmentState

is DeletePending

Identity → IsProvisioned

is true

Cleanup action:

For assignments that have Ignore set to true:

  • set state to AssignmentPending (unless it is Assigned when no action is taken)

For assignments that have Ignore set to false:

  • if the state is DeletePendingSetToPendingAssignment then set state to AssignmentPending

  • otherwise delete resource assignment from database