Page 1 of 1

Annotate other people's data

PostPosted: Thu Nov 01, 2018 9:41 am
by sukunis
Hallo,

i have the following problem:
one of my users is owner of a private group and want to annotate data of other people in this group. I know that is not permitted since 5.3.2.
But is there another way to add annotations to data in private groups by a owner or admin or do we have to move the data?

Regards
Susanne

Re: Annotate other people's data

PostPosted: Fri Nov 02, 2018 11:36 am
by mtbc
Dear Susanne,

The annotations have to be added as if they were by the data owner. There are a few ways I might try this:
  • OMERO.cli's "login" offers a --sudo option that an administrator can use to create an OMERO session as if they were another user. Rather than username/password, one could then use that same new session ID to log in to a graphical client as that data owner.
  • A Java or Python script can use the same approach that the --sudo option's implementation uses. It is probably how Insight does "import as". Our restricted administrator integration tests in Java extensively attempt such sudo'ing to assure that it does not afford a means to circumvent the privilege restrictions.
  • When using the update service to save new objects as an administrator (e.g., an annotation link and its new annotation child), set the objects' details.owner property to the desired data owner before saving.
If any of the above sound appealing and you need help with the details of making them work then please do feel free to ask, we are happy to dig up related code or help with scripting, depending on what fits best with your work. There may also be some other viable approach.

Cheers,
Mark