Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

UserManager.GetOrganizationUnitsAsync(user) - not returning Organizations connected via Roles #10305


User avatar
0
deltavision created

v9.0.1 - MVC - .NET CORE

If I connect organization to a role instead of directly to the user - the call to "UserManager.GetOrganizationUnits" does not return any Orgnaizations. Is that intended?

If so is there another way to get a users organizations - if connected via a role?


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @deltavision

    Yes, this is designed that way. You can override related method in UserManager and include the users organizations - if connected via a role.

  • User Avatar
    0
    deltavision created

    OK - Thank You.