<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>Hi All</div>
<div><br>
</div>
<div>Just to clarify.&nbsp;<span style="font-family: Calibri, sans-serif; font-size: 11pt;">We intend to have a workflow as follows:</span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p>&nbsp;</o:p></div>
<div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;">
1.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>Acquire data on microscope machine, possibly multiple runs, each being possibly several GB in size<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;">
2.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>On each day that data has been acquired, we will run a batch script that converts our raw data to OME-TIFFs (on the microscope machine) late in the evening e.g. 11pm<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -18pt;">
3.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>As the final part of the conversion script, we would like the data to be uploaded to the remote OMERO server, owned by &nbsp;the appropriate user and to a dataset that they selected.<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<o:p>&nbsp;</o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
The issue with this is that we can’t easily store a user’s username and password for use later in a security-conscious way that we’re aware of.&nbsp;</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<br>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Ian</div>
<br>
<div>
<div>On 7 May 2014, at 11:18, Josh Moore &lt;<a href="mailto:josh@glencoesoftware.com">josh@glencoesoftware.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><br>
On May 6, 2014, at 4:21 PM, Mark Woodbridge wrote:<br>
<br>
<blockquote type="cite">Hi,<br>
</blockquote>
<br>
Hi Mark,<br>
<br>
<blockquote type="cite">We would like to schedule an overnight script that batch-converts some raw images into OME-TIFF and then uploads them to OMERO whist retaining their original ownership. All the users owning the images are in the same group.<br>
<br>
In the past I have used the SessionService to run scripts on behalf of other users, and it works fine but requires the OMERO superuser password. Is there any way to create a superuser just for this group and restrict the users that it can impersonate?<br>
</blockquote>
<br>
Not yet, no. As a part of the &quot;import-as&quot; facility, we'd like to allow group owners and possibly other users the ability to perform such actions for someone else. This won't be ready for 5.0.2 though.<br>
<br>
<br>
<blockquote type="cite">Or another means of using the Command Line Importer without sharing the main admin user's (or individual users') password(s)?<br>
</blockquote>
<br>
As a workaround until the above is done, you could use a very long-lived session per user, similar to an OAuth token:<br>
<br>
&nbsp;s.createSessionWithTimeouts(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;omero.sys.Principal(&quot;someuser&quot;, &quot;user&quot;, &quot;Task&quot;),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;31 * 24 * 60 * 60 * 1000, 0) &nbsp;# Usable for 1 month.<br>
<br>
These would have to be manually renewed using the root password. Happy to help come up with a script to do that if you'd like.<br>
<br>
<blockquote type="cite">OMERO.dropbox is maybe another option but we're using a network drive for our OMERO filesystem.<br>
</blockquote>
<br>
We're also looking into to making a &quot;manual dropbox&quot; which you could launch periodically, especially for network drives. But again, not ready for 5.0.2.<br>
<br>
<blockquote type="cite">Mark.<br>
</blockquote>
<br>
All the best,<br>
~Josh.<br>
_______________________________________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a><br>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br>
</blockquote>
</div>
<br>
</body>
</html>