When you open the File Manager in Plesk, the following error is shown:
Unable to lookup SID for name IUSR_example.com: (1332) No mapping between account names and security IDs was done. (Error code 1)
or the following one:
Unable to lookup SID for name IWPG_example.com: (1332) No mapping between account names and security IDs was done. (Error code 1)
When you run
%plesk_cli%\repair.exe --repair-webspace-security -webspace-name example.com, the above errors are shown in CLI.
Migration finishes with the following warning:
Can not deploy web-content of domain example.com Warning: ForeignMigratorCore.MigratorException: System.Exception: Get flags failed of user (IUSR_example.com): (2221) The user name could not be found.
The required user does not exist in the system.
To resolve this issue:
Run the following command:
If the first step did not help, create the required user:
Server Manager > Tools > Computer management > Users and Groups > Create new user.
Or create a user via CLI. Execute the following commands:
net user USERNAME /add net localgroup psacln USERNAME /add
Recover the correct permissions for the domain using the repair utility:
"%plesk_cli%\repair.exe" --repair-webspace-security -webspace-name example.com