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 :)
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
1
var organizationUnitIdsOfUser = _userOrganizationUnitRepository.GetAll() .Where(uou => uou.UserId == input.UserId) .Select(uou => uou.OrganizationUnitId);Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)