Regex Security Transformer

This transformer transforms incoming users by using regular expressions. This is for instance reasonable if you have a dev environment which you need to match on productive Entra Id users.

Configuration

  1. Regex pattern: this is a Java regular expression which is used for matching user ids. If the user id matches the pattern, the replacement from 2. will be carried out.

  2. Value to replace matching patterns: if the user id (alias) matches the expression from 1., this value is used as a replacement. You can use $1, etc. to include matching groups from the matcher from 1. This way you can transform anna@dev.company.com to anna@company.com.

Please note that you can add braces to match parts of the expression. However, if you use $1, $2, etc. then you need to make sure to have at least the same amount or more of group expressions (braces) in the regex pattern in 1. The validation step will not validate if the number of groups matches the numbers used for the replacements.