Change record status: 
Project: 
Introduced in branch: 
10.3.x
Introduced in version: 
10.3.0
Description: 

Install profiles like Standard and Demo Umami used to contain code like:

  // Assign user 1 the "administrator" role.
  /** @var \Drupal\user\Entity\User $user */
  $user = User::load(1);
  $user->addRole('administrator');
  $user->save();

This is no longer necessary as the installer adds any admin roles created to user 1 as part of the Site configuration form submit handler.

Impacts: 
Site templates, recipes and distribution developers