[ome-devel] change user id in the API

Matthias Dunda Matthias.Dunda at carus-it.com
Tue Mar 3 14:43:49 GMT 2009


Hi,

is it possible to change to an arbitrary user after logging in as an administrator (like root)?

Example:

client = new omero.client("localhost");
sf = client.createSession("root", "ome");

now change context to user id 1

all newly created projects, datasets, etc. belong to user 1


So pratically something like doing a "su - username" as root in Linux.

Cheers
Matthias



More information about the ome-devel mailing list