IdLE.Step.EnsureAttributes
Generated file. Do not edit by hand. Source: tools/Generate-IdleStepReference.ps1
Summary
- Step Type:
IdLE.Step.EnsureAttributes - Module:
IdLE.Steps.Common - Implementation:
Invoke-IdleStepEnsureAttributes - Idempotent:
Yes - Required Capabilities:
IdLE.Identity.Attribute.Ensure
Synopsis
Ensures that multiple identity attributes match their desired values.
Description
This is a provider-agnostic step that can ensure multiple attributes in a single step. The engine passes the provider resolved from With.Provider (default 'Identity') as -Provider.
Provider interaction strategy:
-
If the provider implements EnsureAttributes(IdentityKey, AttributesHashtable), it is called once (fast path).
-
Otherwise, the step falls back to calling EnsureAttribute(IdentityKey, Name, Value) for each attribute.
The step is idempotent by design: it converges state to the desired values.
Authentication is handled by the engine (With.AuthSessionName, With.AuthSessionOptions).
Inputs (With.*)
Validated at plan time against the step's WithSchema (see Step metadata contract).
| Key | Type | Required | Default | Notes |
|---|---|---|---|---|
Attributes | Hashtable | Yes | ||
IdentityKey | String | Yes | ||
AuthSessionName | String | No | broker default session | Auth session routing key for the AuthSessionBroker. |
AuthSessionOptions | Hashtable | No | Data-only options passed to the AuthSessionBroker. | |
Provider | String | No | Identity | Provider alias in Providers. |
Example
@{
Name = 'IdLE.Step.EnsureAttributes Example'
Type = 'IdLE.Step.EnsureAttributes'
With = @{
Attributes = @{ GivenName = 'First'; Surname = 'Last' }
IdentityKey = 'user.name'
}
}
See Also
- Capabilities Reference - Details on required capabilities
- Providers - Available provider implementations