or User Organization Unit and its dependent Organization Unit in the hierarchy,
Hi, you can use the IdentityUserAppService's
GetOrganizationUnitsAsync(Guid id)
to get a user's all organization units. The result will beList<OrganizationUnitDto>
and you can see the parentId's of the related organization units. If it's null, then it means it's a root organization unit.Regards.
thanks for your attention to this question,
this method is perfect for finding user's Organization Unit.
but i need change filter type of my Entity from "equal" to "contain" as i need in business AppService, (i implement OU as same as this document)
i mean: Situation 1: AppService1 gets data from my Entity with eaual filter type (set in DbContext Filter for OU) for current user's Organization Unit. Situation 2: AppService2 gets data from my Entity with contains filter type for List of user's Organization Unit and its hierarchy units.
please give me additional information about above situations.
Best Regards.