dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13686
Re: User by organisation unit issue
Hi Jason
On Thu, Aug 25, 2011 at 10:15 AM, Jason Pickering
<jason.p.pickering@xxxxxxxxx> wrote:
> Hi Devs,
> I am having a hard time understanding why I cannot unassign all
> organisational units for a given user through the Users->Users by
> organisation unit-> Edit button (Under a specific user).
>
> I want to unassign all organisational units for a given user, but
> leave the user active in the system. I get a message (This field is
> required) when I hit "Unselect all" from the organisational unit tree
> towards the bottom of the screen. I would expect that it should be
> possible to delete all associations between users and orgunits.
>
This is a good question, the reason is that people often forget to
assign users to organisation units if it is not enforced through
validation. The user needs to have one or more orgunits for the system
to work properly in several situations: i) dynamic generation of
charts based on the current user's orgunit ii) what root in orgunit
tree to choose when logging in iii) the mobile facility reporting
needs to know for which orgunit to save data afaik, and so on. So we
decided to enforce this, I guess we haven't considered the situation
where you want to inactivate a user.
What does it imply to deactivate a user? Should she not be able to log in?
> Another (big issue) which I have noticed is that for users who do not
> have any organisational units assigned to them, they get ALL
> organisational units which have a particular dataset enabled. This is
> a huge issue for us here in Nigeria, as there are some users in the
> system who currently do not have any orgunits assigned to them (but
> will in the future) but should not be able to enter data into orgunits
> to which they not have been explicitly assigned.
>
OK the intended behavior is to display nothing in the orgunit tree
when user has no org units. A bit hard to reproduce this bug. Can you
pls double check the usermembership table for any associations for
this user, and clear the system (Hibernate) cache (guess you have
already done this though).
Lars
Follow ups
References