As an addition point, we have attempted to follow the instructions in the following guide:
https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core
However user.OrganizationUnitId is always null in the UserClaimsPrincipalFactory?
We also noticed that there was already a list of OrganizationUnits in the User.cs class:
public List<UserOrganizationUnit> OrganizationUnits { get; set; }
However it also seems to be null in UserClaimsPrincipalFactory depite the User being in an OU.
Are we missing something?