Base solution for your next web application
Open Closed

Organization Unit Permissions #8101


User avatar
0
amasanad created

I have many units and i need to create admin foreach organization unit so** this admin will have access only and manage this organiztion unit .** I tried to create admin role and assign permissions but still the organization unit admin can see the other units.

Any suggestion ?


3 Answer(s)
  • User Avatar
    0
    amasanad created

    Let's explain in more details.

    Consider you have a tenant for telecommunication companies like Vodafone and Vodafone needs to manage their branches so they will create Organization unit for Istanbul, Ankara,...etc.

    So, I need to create a Unit Admin for each unit he will be able to manage the unit users and add a user in this unit only.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If it is just users, you can manually filter User records based on logged in user's asigned OUs.

    If this is a common usage for your application, you can define a custom filter as explained in https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core.

    This tutorial doesn't fully cover your needs but you can modify it a little bit.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.