How to move a user from internal directory to LDAP directory in Confluence with API

Hi,

How is it possible to move a user from a directory (internal) to another (LDAP) in Confluence with using a confluence API.

I wrote a Python program using xmlrpc api to create a user and it has been created into the internal directory (should be the default one with addUser xmlrpc method). But now I need to move it to the LDAP one (because authentication with password, etc).

Thanks for your help,

Fabien

2 answers

1 accepted

0 votes
Accepted answer
Ann Worley Atlassian Team Jul 07, 2017

The best way to add a user to an LDAP directory is via the LDAP tools. You may add a user with the same name as the internal user to your LDAP directory and providing the LDAP directory is higher in the User Directory hierarchy, the LDAP user will be "seen" as the same user. Please see Managing Multiple Directories for the effects of directory order on group memberships and logins.

Please check out the different types of LDAP User Directories to make sure you configure the one that is best for your use case: The difference between connector and delegated LDAP user directories

Many thanks for your reply Ann,

I moved up the LDAP directory in the first position and that makes the trick.

 

Best,

Fabien

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 6 hours ago in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

17 views 0 3
Read article

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