Hello everybody,
I have been trying the phone number of all the users from Confluence, but have not been able to find phone numbers in the database.
They are not located in the Active Directory.
I hope somebody can help me with this problem.
Those values are stored in the in OS_PROPERTYENTRY table.
For user phone number, look for the row with the entity_key confluence.user.profile.phone.
select * from confluence.OS_PROPERTYENTRY where entity_key='confluence.user.profile.phone';
There was a CONTENT table in old releases and I was using below SQL to get user names also. But it is not working right now since there is no any table named as CONTENT
SELECT OS_PROPERTYENTRY.string_val, CONTENT.USERNAME
FROM confluence.OS_PROPERTYENTRY
INNER JOIN confluence.CONTENT
ON OS_PROPERTYENTRY.entity_id=CONTENT.CONTENTID
AND OS_PROPERTYENTRY.entity_key='confluence.user.profile.phone';
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so very much for your help.
I added a join to user_mapping which gave me the user names.
SELECT OS_PROPERTYENTRY.string_val, user_mapping.USERNAME
FROM intranet.OS_PROPERTYENTRY
INNER JOIN intranet.CONTENT ON OS_PROPERTYENTRY.entity_id=CONTENT.CONTENTID
JOIN intranet.user_mapping ON CONTENT.USERNAME = user_mapping.user_key
AND OS_PROPERTYENTRY.entity_key='confluence.user.profile.phone';
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.