IdLE.Step.CreateIdentity
Generated file. Do not edit by hand. Source: tools/Generate-IdleStepReference.ps1
Summary
- Step Type:
IdLE.Step.CreateIdentity - Module:
IdLE.Steps.Common - Implementation:
Invoke-IdleStepCreateIdentity - Idempotent:
Yes
Synopsis
Creates a new identity in the target system.
Description
The host must supply a provider instance via Context.Providers[<ProviderAlias>] that implements CreateIdentity(identityKey, attributes) and returns an object with properties 'IdentityKey' and 'Changed'.
The step is idempotent by design: if the identity already exists, the provider should return Changed = $false without creating a duplicate.
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:
| Key | Required | Description |
|---|---|---|
Attributes | Yes | Hashtable of attributes to set |
IdentityKey | Yes | Unique identifier for the identity |
Example
@{
Name = 'IdLE.Step.CreateIdentity Example'
Type = 'IdLE.Step.CreateIdentity'
With = @{
Attributes = @{ GivenName = 'First'; Surname = 'Last' }
IdentityKey = 'user.name'
}
}
See Also
- Capabilities Reference - Overview of IdLE capabilities
- Providers - Available provider implementations