Page 1 of 1

Change owner of projects, datasets...

PostPosted: Mon Dec 07, 2009 9:45 am
by bernhard
Hi all!

Is it possible to change the owner of existing items in the database including referenced objects? For example change the owner of a project and all linked datasets and images and annotations?

If this is not possible with any client, would it be possible to use the API to perform this task?

Thanks! Bernhard

Re: Change owner of projects, datasets...

PostPosted: Fri Dec 11, 2009 11:07 am
by cxallan
bernhard wrote:Hi all!

Is it possible to change the owner of existing items in the database including referenced objects?


Yes, it's possible to change the owner and group of a items in the database including reference objects using the API.

bernhard wrote:For example change the owner of a project and all linked datasets and images and annotations?


At present, no there isn't. Modifying the ownership of this entire graph is complex and we are just getting our heads around what such a permissions change could mean for certain types of reference objects. Solving this is one of our goals for our next release.

bernhard wrote:If this is not possible with any client, would it be possible to use the API to perform this task?


It is not possible with any client. You'd have to load the entire graph of data that you'd like to change ownership for, very carefully, and then object.getDetails().setOwner(newOwner) for each.

Re: Change owner of projects, datasets...

PostPosted: Tue Dec 15, 2009 8:13 pm
by jmoore
An API method should be available in the 4.2 release for doing chown on an entire graph as a part of ticket:1434. If you can think of any unusual usages, feel free to add them here or on the ticket. ~Josh.