export username,emails,Phone number

I am the adming for confluence, i would like to export all usernames,email id and phone numbers.


note i to have access to postgress db.


i see all user id are under cwd_user and the phone numbers are under OS_PROPERTYENTRY table but somehow not able to link.
Please help

2 answers

Hi Andre,

 

Thanks for help but it did  not helped.I am looking for 2 columns email and phone number.

 

Above query returned as below which will not help.

                        string_val                        |             username ----------------------------------------------------------+----------------------------------  XXX-XXX-XXXX                                          | c6aa8eee44dc96a00144dc985a4500ac  XXX-XXX-XXXX                                                       | c6aa8eee44dc96a00144dc985b3601da  XXX-XXX-XXXX                                                     | c6aa8eee44dc96a00144dc985a6e00e3  XXX-XXX-XXXX                                                      | c6aa8eee44dc96a00144dc9859f50057  XXX-XXX-XXXX                                                       | c6aa8eee44dc96a00144dc985b8a0255

0 vote

It looks like this same kind of question was answered over on Solved: Which Database table stores User Profiles? - Atlassian Communities

From that post @Jing Hwa Cheokadded this SQL query to locate that information from the SQL database:

SELECT  OS_PROPERTYENTRY.string_val, CONTENT.USERNAME
FROM OS_PROPERTYENTRY
INNER JOIN CONTENT
ON OS_PROPERTYENTRY.entity_id=CONTENT.CONTENTID AND OS_PROPERTYENTRY.entity_key='confluence.user.profile.phone';


This SQL query appear to be able to join the phone number field from the OS_PROPERTY table  with the ID number in the content table that corresponds to the username.   Perhaps this will help.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

49 views 2 2
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