I need to rename all usernames to email address (which are the email addresses in the internal profile) in a Confluence instance, because it should be integrated with Active Directory.
I have already done this i Jira using REST (https://confluence.atlassian.com/jirakb/how-to-bulk-update-users-email-addresses-in-jira-using-rest-api-948218723.html), but I can't seem a corresponding method in Confluence.
If you insist on going via REST - I think you need to look at Embedded Crowd REST APIs.
Not sure if these (from Crowd Server) match, but give it a try: https://docs.atlassian.com/atlassian-crowd/3.7.0/REST/?_ga=2.106232707.1250320289.1579291042-210792933.1571735064#usermanagement/1/user-updateUser
Honestly, you could do it easier via ScriptRunner for Confluence and a Groovy/Java script
Or look at Marketplace app Confluence CLI
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event