Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.08 KB

File metadata and controls

45 lines (40 loc) · 1.08 KB
description Automatically generated file. DO NOT MODIFY
Import-Module Microsoft.Graph.Beta.Identity.Governance

$params = @{
	category = "mover"
	description = "Configure mover tasks for a user when their job profile changes"
	displayName = "Sales contractor moves to full-time employee"
	isEnabled = $true
	isSchedulingEnabled = $true
	executionConditions = @{
		"@odata.type" = "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions"
		scope = @{
			"@odata.type" = "#microsoft.graph.identityGovernance.ruleBasedSubjectSet"
			rule = "(department eq 'Sales')"
		}
		trigger = @{
			"@odata.type" = "#microsoft.graph.identityGovernance.attributeChangeTrigger"
			triggerAttributes = @(
				@{
					name = "department"
				}
			)
		}
	}
	tasks = @(
		@{
			continueOnError = $false
			description = "Send email to moving employee's manager"
			displayName = "Notify manager of move"
			isEnabled = $true
			taskDefinitionId = "aab41899-9972-422a-9d97-f626014578b7"
			arguments = @(
			)
		}
	)
}

New-MgBetaIdentityGovernanceLifecycleWorkflow -BodyParameter $params