Base solution for your next web application
Open Closed

how to setup a Role to have access to specific OUs, with specific permissions #7918


User avatar
0
arctechnicalteamaus created

Dear support,

Documentation for OU (Organization Unit) /Role/OrganizationUnitRoles usages seems incomplete. We have setup these:

Teacher Role - with permisisons such as "mark homework for students". OUs - Such as "Class 1", "Class 2", with normal users (students) being put in OU - "Teachers" to store all teachers, such as Teacher 1, with "Teacher" Role (stored by OrganizationUnitRoles entity).

Question - What's the best way to setup Teacher 1 as the teacher for "Class 1" only, so he can onlt mark homework for Class 1? Put the Teacher 1 into "Class 1" OU? Then "Class 1" OU membership will contain all students, teachers, or maybe report viewers later. It feels messy, as all roles are mixed in the OU members. Is there a better way?

On the second query - we have a use case to need OU - User - Role setup. For example, for the "School 1" OU, the User 1 is an Assessor role; but for "School 2" OU, the sane User 1 is an Report Viewer role. Current ASP.NET Zero setup is to grant a role to a user for the whole system, not for selected OUs. Can we confirm this understanding?

Thanks! Richard


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

    Hi,

    OrganizationUnitRoles only assign specific roles to all users of an organization unit. It seems like it is not suitable for your use cases. You have to implement your bussiness logic using a custom implementation.

  • User Avatar
    0
    arctechnicalteamaus created

    Dear Support,

    Thanks for confirmation. It is equally valuable to a solution.

    Regards, Richard