Skip to content
Snippets Groups Projects

Fix: Organizations could contain the information of Institutes

2 files
+ 10
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -171,6 +171,16 @@ public class UserReporting : Reporting<UserReportingOptions>
Console.WriteLine($" No {searchedEntityType} found for user with ID \"{id}\" and login provider {loginProvider.DisplayName}");
continue;
}
if (orgShibboleth.RorUrl.Contains('#'))
{
var orgTopLevelRor = orgShibboleth.RorUrl[..orgShibboleth.RorUrl.IndexOf('#')];
var orgTopLevel = FetchOrganizationByRor(orgTopLevelRor);
if (!orgTopLevel.RorUrl.Equals(_otherOrganization.RorUrl))
{
result.Add(orgTopLevel);
break;
}
}
result.Add(orgShibboleth);
break;
default:
Loading