Page 2 of 2

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 4:01 am
by mayav
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

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 7:59 am
by jmoore
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.

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 9:16 am
by mayav
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

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 9:55 am
by jmoore
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

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 10:03 am
by mayav
Hi

Here with i attach the zip file

Re: Reg Bulk User id creation

PostPosted: Tue Dec 04, 2018 10:34 am
by jmoore
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

Re: Reg Bulk User id creation

PostPosted: Fri Dec 07, 2018 11:02 am
by mayav
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

Re: Reg Bulk User id creation

PostPosted: Fri Dec 07, 2018 4:23 pm
by kennethgillen
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

Re: Reg Bulk User id creation

PostPosted: Sat Dec 08, 2018 5:22 am
by mayav
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

Re: Reg Bulk User id creation

PostPosted: Mon Dec 10, 2018 12:23 pm
by jmoore
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