Make collection for other user

10 views
Skip to first unread message

Mark Schenk

unread,
Oct 28, 2025, 12:01:12 PM (2 days ago) Oct 28
to iRODS-Chat
Hi all,

I've been trying unsuccesfully to create a collection in iRods that is owned by another user. Apparently the owner field cannot be updated after creation of an object, so this needs to be done at create time.

I can't see any options in icommands, nor in the python client. I tried using msiCreateCollByAdmin in a rule, since it looks like this is called from acCreateUser, but that crashed when called directly.

To be clear: I can't have this be part of the user-creation process, it needs to be invoked afterwards.

Of course I am trying all this as a rodsadmin user.

Any pointer in the right direction will be appreciated!

Mark

Smeele, A.P.M. (Ton)

unread,
Oct 28, 2025, 12:13:58 PM (2 days ago) Oct 28
to irod...@googlegroups.com
Hi Mark,

As a rodsadmin, you can create a collection "on behalf of" another user, which might be a solution for this use case.
To do so (for a user named foo), set an environment variable when you invoke the icommand:

$ clientUserName=foo  imkdir /path/to/new/collection

Cheers,

Ton

On Tue, 2025-10-28 at 09:01 -0700, Mark Schenk wrote:

CAUTION: This email originated from outside of Utrecht University. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--

Reply all
Reply to author
Forward
0 new messages