Domains should always be mapped, but address replacements are optional and usually only need to be provided when you have specialist requirements. CloudM Migrate maps usernames and email addresses automatically if they have been configured in the user list.
There are a number of options which control how replacements are performed. It is important to understand how these applied, in which order and under which conditions. It is possible to end up with incorrect email addresses if the options are not fully understood.
- Replace Usernames – Replace any re-mapped usernames from the users tab, when migrating the items specified in 'Domain Replacement Types' in Common settings. If this option is disabled and replacements are required, explicit mappings for email addresses and domain names should be provided via the other settings in this section. Only addresses that belong to source domains are automatically mapped. When migrating from Google Workspace, the source domains are automatically identified, but when migrating from other sources you should specify the domains in the next setting: Address Domain Replacements
- Address Domain Replacements - If migrating from one domain name to another, specify the domain names that should be replaced and the value with which they should be replaced with. For example, when migrating from example.com to domain.com, you should provide example.com and domain.com in this setting. If migrating from one Google Workspace domain to another, domain replacements are performed automatically unless Replace CSV Addresses Only is selected and you have not provided the domain mappings within the file.
Address Replacements (File) – Use this option to provide an explicit list of email addresses to be mapped as part of a migration. If performing domain consolidation or if you have other specialized requirements then this option can be used to map any source email address to any other address. Addresses should be mapped using a simple CSV file containing two columns, the first for the address to be replaced and the second the replacement address.
- A check will be performed on the Address Replacements list, and, if a duplicate file is identified, you will see a notification highlighting where the issue is (e.g. Line number 6 is invalid).
- Replace CSV Addresses Only - Perform email addresses and domain replacements from the CSV file specified in Address Replacements (File) and do not attempt to perform replacements using any other method. This can be useful when partially migrating users from a source domain and only those specified in the CSV file should be replaced. Note that if you use this option you should be careful to specify all replacements, including domain names and group addresses in the CSV file. If an address or domain is not matched from the CSV and you have this option on, the address from the source will be left unchanged.
- Non Matched Address Replacement Behaviour - When 'Replace Usernames' is enabled, and when a CSV has been provided for address replacements, set the behavior when an address has not been matched (and therefore replaced) from either the CSV file or from the users specified on the users tab. Either replace the domain name based on any domain mappings provided (or to the destination domain in the case of Google to Google), or leave the original address unchanged.
The rules for domain replacements are applied in the following order:
- Check to see if the domain replacement for the type of item being migrated is enabled. If the type is not configured, do not perform any replacements. When migrating Drive/Documents, domain replacements are always performed
- Check to see if a direct replacement has been specified in a CSV file in Address Replacements (File). If its been specified, apply the replacement and perform no further actions.
- If the option Replace CSV Addresses Only has been set, do not perform any more replacements.
- Check to see if the name part of an address has been changed according to the user list within CloudM Migrate. If there is a matching name part of an email address in export name in the address list, change it to the import name. This is only applied if the address being processed is from a source domain. When migrating from Google Workspace the source domains are automatically identified, but when migrating from other sources you should specify the domains Address Domain Replacements
- If a CSV file was provided and there was no match and when a match was not found in the user list, then check to see if the original address should be left, or the domain name replaced. This check is performed based on the setting: Non Matched Address Replacement Behaviour. Note that if a CSV file was provided and no match was found in the CSV file or the user list and the value of Non Matched Address Replacement Behaviour is set to Retain Original then no more address replacements will be made, including for domain names.
- Apply any other domain name replacements configured within Address Domain Replacements.
For Google Drive to Google Drive migrations domain permissions are normally mapped automatically. However, if you have provided a CSV file for Address Replacements (File) and have selected Replace CSV Addresses Only then unless you have mapped the domain name, it will not be mapped when domain wide permissions are transferred and the source domain will be shared on the migrated items. To ensure domain wide permissions are replaced correctly then include the mapping in the CSV file in the format:
Manipulating Global and Domain Permissions
Address Replacements (File) can also be used to map global and domain permissions to other permission scopes in Google Drive migrations.
This functionality allows special global replacements to be applied. These permissions are the following:
- Domain With Link
- Anyone With Link
To enable the replacements of these items, a replacements CSV must be used. One of the following values must be used for the 1st column:
In the second column, the address that the permission should be mapped to should be provided. By default, the scope of the new permission is group. For example, if the second column contains firstname.lastname@example.org then the permission in column one will be mapped to the group.
The value in the second column can also contain an extra option, separated from the address using colon. The extra option specifies whether the address is a user, group or domain. Note this special extra value can only be used when performing replacements for one of the special values above, using it for normal addresses will cause the ACL to not be applied. For example, a CSV files as follows:
domain,email@example.com:user anyoneWithLink,firstname.lastname@example.org:group anyone,domain.com:domain domainWithLink,email@example.com
- The domain permission in column 1 to be replaced with the specified user
- the anyone with link permission in column 1 to be replaced with the specified group
- The anyone permission in column 1 to be replaced with a domain permission (this could be used to map anyone to domain for example)
- The domain with link permission in column 1 to be replaced with the specified group (no explicit type provided)
Generally, to remove confusion, if you are using a CSV file to provide mappings, then you should ensure that all addresses, groups and domains are included in the CSV file. This removes any ambiguity about what will be replaced, although the rules described above apply.
If none of your users or groups are changing names, and you have no need to map users from one account to another then you do not need to provide a CSV file.
If you are using a CSV file only to map certain users or groups and you wish to change the domain name of other users, groups and domains who are not explicitly listed then you must ensure that the setting Non Matched Address Replacement Behaviour is set to Replace Domains.