Deleting a user

it-p wrote on Saturday, January 21, 2006:

Hi guys,

How do I delete a user from O-EMR? if click on the remove next to the username, nothing happens the browser just refreshes and the username just apears again!
I am logged in as admin

sunsetsystems wrote on Saturday, January 21, 2006:

Clicking (Delete) should give you a popup window requesting confirmation.  Perhaps your browser is blocking popups?

– Rod
www.sunsetsystems.com

it-p wrote on Sunday, January 22, 2006:

Thanks Rod,
I think it’s time for a complete new installation of ubuntu and oemr. Been messing around with directories, layout etc.
Just want 2 get some routines in installing and configuring this thing. Planning to introduce it 2 some doctors over here!

it-p wrote on Monday, January 23, 2006:

Ok, fresh install of ubuntu and oemr but still have the same problem!
clicking on delete just refreshes the browser and everything comes up the same again?
my browser isn’t blocking popups.
Some other sugestions?

sunsetsystems wrote on Monday, January 23, 2006:

The popup is invoked with a JavaScript "onclick" event handler.  The behavior you describe (refreshing the window) is what would happen if JavaScript were disabled, or perhaps if it were encountering an error.

I have tested this case with Mozilla on Linux and IE 6 on Windows and it looks OK from here.  What browser are you using?  Is it possible you have scripting disabled?

– Rod
www.sunsetsystems.com

it-p wrote on Monday, January 23, 2006:

Hi Rod, I’ve tested this on Firefox and IE6 client side(windows) and on Firefox on the server itself.
Moving the user from one group to another goes fine and if there is left no other user in a group the system removes the group automaticaly from the list.
But deleting a user just doesn’t happen.

Maybe it’s because I didn’t install it with the default configuration out of the box?
Because when creating databases and group I’ve given them other names like oemr for the databases and the folder where OpenEMR is installed in, also the “default” groupname is given another name at the installation process itself and not by renaming it afterwards in Administration…

Aslo, do I have to edit php.ini more in datail to let it work with mysql or does it suffice just by installing php4-mysql ?

TIA Rod.

sunsetsystems wrote on Monday, January 23, 2006:

Sorry, I misunderstood your original request.  Here is what I have learned:

(1) The (Remove) links at the very bottom of the Users and Groups page are intended to remove the user from that group, not to delete that user.  However the code is broken and it does not work.  I’ll do something about fixing it.

(2) Above this, in the listing of users, there used to be a column with a ‘[Delete]’ link for deleting the user.  Somebody commented that out.  They probably figured it was too dangerous, since deleting a user who is referenced in encounters could have very annoying consequences.

Probably your best bet for now is to manually delete the user from the users and groups tables, *IF* you are sure that is a safe thing to do.  Eventually someone needs to write logic for deleting users that checks to make sure the user is not referenced elsewhere (and similarly for renaming users).

– Rod
www.sunsetsystems.com

it-p wrote on Monday, January 23, 2006:

Hi Rod,
I see, there’s a risk in this for large clinics and indeed there’s a differance between “remove” and “delete”.
Yep, I could delete the user from within the database itself but didn’t know if this was the “right” method.

Thnx.

profjake wrote on Wednesday, January 25, 2006:

What Delete?
There is no delete that I see anywhere under Administration/Users and groups…
Where is the delete button?
I see remove but it doesnt remove a test user from default that I just added.
I have java on, popups allowed, tried in IE and Opera 8.

it-p wrote on Wednesday, January 25, 2006:

There is indeed no “delete” link anywhere.
But you can delete a user from within MySQL.
Be aware that you can mess up your database if you don’t now what you are doing!

The remove link is to remove a user from one group to another if you have more than one group.

nursejeff wrote on Thursday, October 13, 2011:

I need to ask this question again.

I need to delete a user.  I do not see a delete option.

How can I do this?

Thank you.

Jeff Guillory
NP Health Clinic

mdsupport wrote on Thursday, October 13, 2011:

nursejeff :

There is no standard delete option.  However you can mark an user to be ‘inactive’ using the administration menu to the same effect.

The user record is tied to several entities in the EMR.  Allowing the ‘Delete’ functionality will mean e.g. not be able to know which clinician did the vitals and so on.