diff --git a/src/Ombi.Schedule/Jobs/Emby/EmbyUserImporter.cs b/src/Ombi.Schedule/Jobs/Emby/EmbyUserImporter.cs index a28a56ba2..2dadd4bd4 100644 --- a/src/Ombi.Schedule/Jobs/Emby/EmbyUserImporter.cs +++ b/src/Ombi.Schedule/Jobs/Emby/EmbyUserImporter.cs @@ -94,6 +94,13 @@ namespace Ombi.Schedule.Jobs.Emby var existingEmbyUser = allUsers.FirstOrDefault(x => x.ProviderUserId == embyUser.Id); if (existingEmbyUser == null) { + + if (!embyUser.ConnectUserName.HasValue() && !embyUser.Name.HasValue()) + { + _log.LogInformation("Could not create Emby user since the have no username, PlexUserId: {0}", embyUser.Id); + continue; + } + // Create this users // We do not store a password against the user since they will authenticate via Plex var newUser = new OmbiUser diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs b/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs index 22211ea6d..4f6bf2550 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexUserImporter.cs @@ -75,6 +75,12 @@ namespace Ombi.Schedule.Jobs.Plex var existingPlexUser = allUsers.FirstOrDefault(x => x.ProviderUserId == plexUser.Id); if (existingPlexUser == null) { + + if (!plexUser.Username.HasValue()) + { + _log.LogInformation("Could not create Plex user since the have no username, PlexUserId: {0}", plexUser.Id); + continue; + } // Create this users // We do not store a password against the user since they will authenticate via Plex var newUser = new OmbiUser