0
larsfk created
Hi!
Is there a way to find out which organization unit a user is member of? Or do you have to loop through all units and check if the user is in one of the units?
Thanks :)
1 Answer(s)
-
1
var organizationUnitIdsOfUser = _userOrganizationUnitRepository.GetAll() .Where(uou => uou.UserId == input.UserId) .Select(uou => uou.OrganizationUnitId);