Question: Deleting A Galaxy User
0
gravatar for Oren Livne
7.1 years ago by
Oren Livne130
Oren Livne130 wrote:
Dear All, Is it possible to delete a galaxy user or multiple users with a UI call or an API call? Thanks, Oren
galaxy • 1.1k views
ADD COMMENTlink modified 7.1 years ago by Jennifer Hillman Jackson25k • written 7.1 years ago by Oren Livne130
0
gravatar for Jennifer Hillman Jackson
7.1 years ago by
United States
Jennifer Hillman Jackson25k wrote:
Hi Oren, I am posting the answer given to the galaxy-dev mailing list below for other users, even thought this is a development topic. Next time, please only post to a single mailing list. Thanks! Jen Galaxy team Repost: "Manage users", I get the user list and can select users, but there is no "Delete User" button. Hi Oren, Hrm, it looks like the option to delete users was removed from the interface since it couldn't be made conditional on a configuration setting (due to a limitation in Galaxy's "Grids" feature, which is used to display the table of users in the UI). They can be added by uncommented lines 98-100 in lib/galaxy/web/controllers/admin.py: #operations.append( grids.GridOperation( "Delete", condition=( lambda item: not item.deleted ), allow_multiple=True ) ) #operations.append( grids.GridOperation( "Undelete", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) #operations.append( grids.GridOperation( "Purge", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) method. mark_user_deleted() in lib/galaxy/web/base/controller.py. The preferred method for implementing API methods is by moving the code in the web UI controller which performs the actual action to lib/galaxy/actions/ and then changing the API and UI methods to call that method. See the implementation of the Quota API for a reference. get the error trackback: http://128.135.107.157:8080/admin/reset_user_password <plus.jpg> view <plus.jpg> view view ).lstrip( "!" ) ) libraries under "Manage data libraries". One library deletion works, but multiple yields an error message: df7a1f0c02a5b08e,0a248a1f62a0cc04,03501d7626bd192f,3f5830403180d620,2a 56795cad3c7db3,417e33144b294c21,5a1cff6882ddb5b2,2d9035b3fc152403,4b18 7121143038ff,c9468fdb6dc5c5f1,1e8ab44153008be8,e85a3be143d5905b ) specifield. Thanks for reporting these, we'll fix them as soon as possible. I've created a bitbucket here to track them: https://bitbucket.org/galaxy/galaxy-central/issue/678/some-user-and- library-grid-operations --nate -- Jennifer Jackson http://usegalaxy.org http://galaxyproject.org/wiki/Support
ADD COMMENTlink written 7.1 years ago by Jennifer Hillman Jackson25k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 184 users visited in the last hour