The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we get User LDAP info by rest API

Yuri Myts
October 21, 2022

open user setting -> user management -> user directories -> there we can set up LDAP for user.

Can we get user directories with rest API to know about LDAP directory?

or do we have another way to get LDAP info?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Karim ABO HASHISH
Community Champion
November 20, 2022

hi @Yuri Myts 

This is not ideal, but it will work.

You can get LDAP info for users using the below Database query which returns the list of users along with their associated directory.

USE jiradb;

SELECT lower_user_name, directory.directory_name, user.active FROM cwd_user as user INNER JOIN cwd_directory as directory ON user.directory_id = directory.id;

Let me know if further assistance or elaboration is needed.

Cheers,

Karim

Yuri Myts
September 22, 2023

@Karim ABO HASHISH  is it possible to trigger db query via API? 
I suppose we even have no access to db.

 

BR,

Yurii