We're Hiring!

Reg Bulk User id creation

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: Reg Bulk User id creation

Postby mayav » Tue Dec 04, 2018 4:01 am

omero@ubuntu-14:~/OMERO.server$ ./bulk.sh bulk.csv
Using session 5f186d21-f3db-466e-ba68-8e1cef20c072 (root@localhost:4064). Idle timeout: 10 min. Current group: system
Added user bulk-user1 (id=114) with password
omero@ubuntu-14:~/OMERO.server$

No Error message
mayav
 
Posts: 51
Joined: Mon Jan 30, 2017 10:50 am

Re: Reg Bulk User id creation

Postby jmoore » Tue Dec 04, 2018 7:59 am

If your CSV has more than one line, then you should definitely see more output. You could try putting an "echo" before the "omero" command:

Code: Select all
   echo omero -q user add --ignore-existing \


to see if the loop is reading all the lines from your CSV.
~J.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Reg Bulk User id creation

Postby mayav » Tue Dec 04, 2018 9:16 am

omero@ubuntu-14:~/OMERO.server$ ./bulk.sh bulk.csv
Using session 978b6144-339f-4c24-8044-75e62663d388 (root@localhost:4064). Idle timeout: 10 min. Current group: system
omero -q user add --ignore-existing bulk-user1 Albert A. bulk-groups --userpassword abc123
omero@ubuntu-14:~/OMERO.server$

Only First line is echo-ed
mayav
 
Posts: 51
Joined: Mon Jan 30, 2017 10:50 am

Re: Reg Bulk User id creation

Postby jmoore » Tue Dec 04, 2018 9:55 am

Sorry, but I don't know what's going on in your setup. You can try pasting the files back here, or uploading them as a zip. Perhaps there's some odd line-ending issue that's taking place.

~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Reg Bulk User id creation

Postby mayav » Tue Dec 04, 2018 10:03 am

Hi

Here with i attach the zip file
Attachments
archive.zip
(445 Bytes) Downloaded 99 times
mayav
 
Posts: 51
Joined: Mon Jan 30, 2017 10:50 am

Re: Reg Bulk User id creation

Postby jmoore » Tue Dec 04, 2018 10:34 am

Ah, yes. Your CSV file is missing a newline after the second line. You can either add in support for this to the script (see https://stackoverflow.com/a/10929511/286218) or you can go to the end of the second line (after def456), hit enter, and save.

~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Reg Bulk User id creation

Postby mayav » Fri Dec 07, 2018 11:02 am

Hi

Thanks added few line as per your link suggestion script work good.
I have one more question How can i delete the test user or demo user ?

Thank You
mayav
 
Posts: 51
Joined: Mon Jan 30, 2017 10:50 am

Re: Reg Bulk User id creation

Postby kennethgillen » Fri Dec 07, 2018 4:23 pm

Hi mayav,

OMERO doesn't support user deletion. Your best bet is to remove them from any groups other than their "default", which could be a private group for old users, and "lock"/deactivate them.

You can also change their usernames if that makes sense, too.

Best,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Reg Bulk User id creation

Postby mayav » Sat Dec 08, 2018 5:22 am

Okay thanks

Is any way to track the user log or live log how many user connecting the omero from which system like google analytics with simple data ?

Any other way to look who is live and online in accessing the omero service ?

Thanks
mayav
 
Posts: 51
Joined: Mon Jan 30, 2017 10:50 am

Re: Reg Bulk User id creation

Postby jmoore » Mon Dec 10, 2018 12:23 pm

Is any way to track the user log or live log how many user connecting the omero from which system like google analytics with simple data ?

You can inject a script element into each page to activate Google Analytics. See https://docs.openmicroscopy.org/omero/5.4.9/sysadmins/customization.html#include-template-in-every-page for configuration instructions.

Any other way to look who is live and online in accessing the omero service ?


From the command-line, `bin/omero sessions who` as an admin shows who's connected. That can be connected to a monitoring tool like check_mk, for example.

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron