How to check if a Confluence user is local or AD?

I've been trying to work out a way of differentiating between a local Confluence user and one that is added via AD but no getting anywhere.

I need to be able to add different options to the certain user profile pages post login, for example updating passwords and user details - depending on which type of user they are.

Has anyone done something similar?

1 answer

1 accepted

1 vote

Hi Steve,

As far as I know, if you go to the user profile you'll be able to spot if the user comes from a internal directory or a LDAP directory. You can also spot this information from a database query:

SELECT cu.id, cu.user_name, cd.directory_name FROM cwd_user cu
join cwd_directory cd on cu.directory_id = cd.id
where cu.active = 'T';

This query will show you the active users from confluence and from which directory name they come from.

As for scripting, that might be possible with a custom authenticator however it will require some development on the way probably.

Cheers,

Rodrigo

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
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,088 views 25 10
Join discussion

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