Previous Topic: Map Customers with Group and Constant Mapping Types

Next Topic: Apply Mappings to Assertion Attributes


Map the Account Status with the Mask and Expression Mapping Types

Use a mask attribute mapping and an expression attribute mapping to identify user accounts that are disabled in Directory A and Directory B.

Deployment

Solution

  1. Create a mask attribute mapping for Directory A.
    Name

    IsDisabled

    Mapping Type

    Mask

    Definition

    AccountStatus:2

    The definition indicates that the bit pattern is stored in AccountStatus, and the bit mask is 2 (decimal).

  2. Create a expression attribute mapping for Directory B.
    Name

    IsDisabled

    Mapping Type

    Expression

    Definition
    (u_disabled = "y")
    

    u_disabled is a Boolean expression.

When referencing Directory A, the bit pattern determines if a user is disabled. When referencing Directory B, the expression determines if a user is disabled.