Changing the owner of a page version on api level Edited

Hi @all,

 

I have to remove old unsused users from the system based on compliance rules. A part of this is to transfer all the page versions owned by such a user to another user. 

Everything is under control besides the history page 

https://confluence.atlassian.com/doc/page-history-and-page-comparison-views-139379.html

What I know is, that I have to change the contributor set of the version history. What I not know, is how?!

Has anyone any idea how to do that, how to achieve this with tha java API?

Regards

Steve

2 answers

1 accepted

I got it...

Since I'm using confluence to manage the LDAP in the background,

  • I'm deleting the old user
  • switching to the internal directory
  • creating a new user with the same id
  • renaming this user
  • switching back to the ldap directory
Ann Worley Atlassian Team Jan 12, 2018

Awesome! Thanks for sharing the solution you came up with. Your use case is unusual but I can see how it may come up again. Please keep us updated if you run into anything unexpected.

0 vote
Ann Worley Atlassian Team Jan 10, 2018

Hi Steve,

I am having trouble understanding your use case. Confluence pages don't have owners in the sense that files in an OS do. Anyone with the permission to edit them may make changes. The last person to make changes will have the byline for the latest change: "last modified by...".

Is it your goal to have the Changed by column in the page history comparison view credit the changes to a different user from the one that is now displayed but no longer active? It seems like that would show an inaccurate history of the page so I am not sure why it would be desirable.

I look forward to learning more about the changes you would like to make via API.

Thanks,

Ann

It's the "changed by" column, but you can't edit this relation between user and content as far as I figured out at the moment.

My customer is giving away user ids from former employees to new employees. So we have to "free" theses user ids. The whole setup is unlikly complex, as they use a "custom" directory based on webservices rather then on ldap. So we have an ldap server as some kind of proxy, which is feeded by confluence as you can't redirect the password challenge from the internal directory to the ldap, but you can with a ldap connector. And it's at least as confusing as those lines are ;)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked May 24, 2018 in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

602 views 18 16
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you