Hello,
As we can see there is a Business Rule that creates a mailbox for the user after the script is executed. You need to create another Business Rule that will trigger Before Creating an Exchange mailbox for a User and execute the script below.
$map = @{ "å"="a"; "ö"="o"; "ä"="a";"ü"="u"; "ñ"="n"; "é"="e"; "-"=""; "'"="" }
$alias = $Context.Action.MailAlias
foreach ($key in $map.Keys)
{
$alias = $alias.Replace($key, $map[$key])
}
$Context.Action.MailAlias = $alias
The rule should look as follows: