diff --git a/Jellyfin.Api/Controllers/StartupController.cs b/Jellyfin.Api/Controllers/StartupController.cs index 9378cfedb6..788e67bb99 100644 --- a/Jellyfin.Api/Controllers/StartupController.cs +++ b/Jellyfin.Api/Controllers/StartupController.cs @@ -144,7 +144,7 @@ public class StartupController : BaseJellyfinApiController if (startupUserDto.Name is not null) { - user.Username = startupUserDto.Name; + await _userManager.RenameUser(user.Id, user.Username, startupUserDto.Name).ConfigureAwait(false); } await _userManager.UpdateUserAsync(user).ConfigureAwait(false);