Skip to content

Configure unique claims

MWARE IAM can be configured to retain the uniqueness of user claims. This allows you to keep a user claim value as a unique value within all user stores.

Follow the steps below to configure MWARE IAM.

  1. Open the deployment.toml file in the <IS_HOME>/repository/conf folder and add the following configurations.

    [[event_listener]]
    id = "unique_claim_user_operation_event_listener" 
    type = "org.wso2.carbon.user.core.listener.UserOperationEventListener"
    name = "org.wso2.carbon.identity.unique.claim.mgt.listener.UniqueClaimUserOperationEventListener" 
    order = 2 
    enable = true
  2. Restart MWARE IAM and access the Management Console (https://<IS_HOST>:<PORT>/carbon) .

  3. From the list of claims, select the claim you want to configure to keep it unique.

    select-claim-from-list

  4. Click Edit to open the claim edit page.

    claim-edite-window

  5. Click Add Claim Property and add an additional claim property as follows.

    Property Name Property Value
    isUnique true

    additional-claim-properties

  6. Finally, click Update to save the additional claim property.

Now you can check and verify the functionality by adding users with an existing claim value or updating the user claim value of an existing claim.

Top