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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 2 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

200 views 3 4
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