Skip to main content

IdLE.Step.MoveIdentity

Generated file. Do not edit by hand. Source: tools/Generate-IdleStepReference.ps1

Summary

  • Step Type: IdLE.Step.MoveIdentity
  • Module: IdLE.Steps.Common
  • Implementation: Invoke-IdleStepMoveIdentity
  • Idempotent: Yes

Synopsis

Moves an identity to a different container/OU in the target system.

Description

The host must supply a provider instance via Context.Providers[<ProviderAlias>] that implements MoveIdentity(identityKey, targetContainer) and returns an object with properties 'IdentityKey' and 'Changed'.

The step is idempotent by design: if the identity is already in the target container, the provider should return Changed = $false.

Authentication:

  • If With.AuthSessionName is present, the step acquires an auth session via Context.AcquireAuthSession(Name, Options) and passes it to the provider method if the provider supports an AuthSession parameter.

  • With.AuthSessionOptions (optional, hashtable) is passed to the broker for session selection (e.g., @{ Role = 'Tier0' }).

  • ScriptBlocks in AuthSessionOptions are rejected (security boundary).

Inputs (With.*)

The following keys are required in the step's With configuration:

KeyRequiredDescription
IdentityKeyYesUnique identifier for the identity
TargetContainerYesSee step description for details

Example

@{
Name = 'IdLE.Step.MoveIdentity Example'
Type = 'IdLE.Step.MoveIdentity'
With = @{
IdentityKey = 'user.name'
TargetContainer = '<value>'
}
}

See Also