# Sign-in name and Alias

Product: Identity Universe
Source: https://docs.fortytwo.io/identity-universe/change-email/plandesign/signin-and-alias/

For most organizations, you do not want the user to add variations of the name as aliases. In this situation, you would change the **used for** setting to **sign-in name only** for your patterns. You would instead use aliases for situations where you have additional domains in your tenant you want the user to be able to add. This might be because you have additional domains for branding purposes, a result of a merger/acquisition or country-specific domains.

If we break down what the end-user will see with this feature, it becomes clear. In our scenario, the user has married and changed their name. The display name has already changed and is visible in the top-right corner.

![User change email](https://docs.fortytwo.io/identity-universe/change-email/media/me-changeemail.png)

In the right-hand box, you can see that the user still has the old name in email addresses and sign-in name. You can also see that our email policy adds an alias with mailNickname as the prefix by default; our company uses the employeeID as mailNickname to keep it stable over time. In the top-left box the user can select the new name to use. The current name will automatically be added to the aliases when the name is changed. In the bottom-left box, the user can also add additional email addresses from other domains we use.

This is the JSON we used for this configuration.

``` JSON
{
  "enabled": true,
  "patternEntries": [
    {
      "pattern": "{firstnamewd1}.{lastname-1}@fabrikamonline.com",
      "priority": 10,
      "use": "SignInNameOnly"
    },
    {
      "pattern": "{firstname1}.{lastname-1}@fabrikamonline.com",
      "priority": 20,
      "use": "SignInNameOnly"
    },
    {
      "pattern": "{firstname1}.{firstname2}.{lastname-1}@fabrikamonline.com",
      "priority": 30,
      "use": "SignInNameOnly"
    },
    {
      "pattern": "{firstname1,1}.{lastname-1}@fabrikamonline.com",
      "priority": 40,
      "use": "SignInNameOnly"
    },
    {
      "pattern": "{firstname1}.{firstname2,1}.{lastname-1}@fabrikamonline.com",
      "priority": 50,
      "use": "SignInNameOnly"
    },
    {
      "pattern": "{firstnamewd1}.{lastname-1}@fabrikam.online",
      "priority": 60,
      "use": "AliasOnly"
    },
    {
      "pattern": "{firstnamewd1}.{lastname-1}@fabrikamonline.eu",
      "priority": 70,
      "use": "AliasOnly"
    }
  ],
  "accountNamePatternEntries": [
    {
      "pattern": "{firstname1,1}{lastname-1,4}",
      "priority": 10
    },
    {
      "pattern": "{firstname1,2}{lastname-1,3}",
      "priority": 20
    },
    {
      "pattern": "{firstname1,3}{lastname-1,2}",
      "priority": 30
    },
    {
      "pattern": "{firstname1,4}{lastname-1,1}",
      "priority": 40
    },
    {
      "pattern": "{firstname1,1}{lastname-1,5}",
      "priority": 50
    },
    {
      "pattern": "{firstname1,1}{lastname-1,4}2",
      "priority": 60
    },
    {
      "pattern": "{firstname1,1}{lastname-1,4}3",
      "priority": 70
    }
  ]
}
```
