AAD Error Code
Synopsis
Converts Azure Active Directory (AAD) error codes to human-readable error descriptions using ASIM lookup logic.
Schema
- aad_errcode:
description: <text>
field: <ident>
target_field: <ident>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | Y | Field containing the AAD error code | |
target_field | N | Same as field | Field to store the error description |
description | N | - | Explanatory notes |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | Continue processing if the field is missing |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The processor accepts error codes in various formats (string, integer, float) and converts them to standardized error descriptions. It uses ASIM-compatible error categorization:
- Authentication failed - Invalid credentials or authentication errors
- No such user or password - User not found or invalid password
- User locked - Account locked due to security policies
- Password expired - Password needs to be reset
- User disabled - Account has been disabled
- Logon violates policy - Access blocked by security policies
- Device not compliant - Device doesn't meet compliance requirements
If an error code is not recognized, it returns "Unassigned".
This processor is designed specifically for Azure Active Directory error codes. It may not be suitable for other authentication systems or identity providers.
The error code mappings are based on commonly documented AAD error codes. Microsoft may introduce new error codes or change existing ones, which would require updating the processor's lookup table.
Examples
Basic Usage
Convert a numeric AAD error code... |
|
to a human-readable description: |
|
Using Target Field
Store the description in a separate field... |
|
while preserving the original code: |
|
Authentication Errors
Common authentication failure codes... |
|
are mapped to standard descriptions: |
|
Password Related Errors
Password-related error codes... |
|
are categorized appropriately: |
|
Conditional Access Errors
Conditional access violations... |
|
indicate device compliance issues: |
|
B2C Error Codes
Azure AD B2C specific errors... |
|
are also supported: |
|
Unknown Error Codes
Unrecognized error codes... |
|
default to "Unassigned": |
|