Change the owner of all the document in repository

Hi, In my current setup I am using Nuxeo with LDAP and CAS integration. Now my requirement is, for some scenarios one user upload the document after login but after certain period of time due to company change the user id may change for that user but will remain part of same tenant. So, after change of the user id too the user wants to see the documents uploaded with earlier user id. A example given below.

User Name: user1@abc.com –> Uploaded a document name “User1ABC”

user2@abc.com –> Uploaded a document name “User2ABC”

Now due to business need the user name (domain name) may change in the system. user1@abc.com –> Becomes user1@xyz.com

user2@abc.com –> Becomes user2@xyz.com

In this scenario also the user1 & user2 would like to see the documents uploaded during the earlier user name(user1@abc.com & user2@abc.com).

when this domain name change it will be applicable for all the users under that tenant.

So, how we could achieve that though program or with some other API.

0 votes

0 answers

1655 views

ANSWER