This relates to v5.2.3 of the Download version of Confluence.
I use the SQL Plugin with the SQL macro to query information directly out of our Confluence instance. Somewhere in a recent upgrade (5.0.x to 5.1.x or 5.1.x to 5.2.x) the format of usernames on tables such as CONTENT.LASTMODIFIER or NOTIFICATIONS.USERNAME have changed from a plaintext version to an 32 character hexadecimal hash. Previously these plaintext versions were identical to CWD_USER.USER_NAME.
I want to be able to profile information such as,
I can't seem to do it unless I can reverse this hash, or join it to a table that also has this hash which identifies the plaintext username.
It looks like the user_mapping table stores the relation between the key and the username.
This table doesn't seem to exist in my Confluence instance nor is it mentioned in the data model https://confluence.atlassian.com/display/DOC/Confluence+Data+Model
Are you able to elaborate?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nevermind. I tried to select from the user_mapping table from a SQL macro in Confluence and it wasn't working. I've connected directly to the database and I can see the user_mapping table and the data linking the users.
It might now just be a permission issue.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This helped me track down some users who don't have an email address set but have still subscribed to some notifications. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspect they are hashing the user id somehow because the hexidecimal values seem to be sort of incremental (the first 24 characters of the hashes I've looked at seem to be the same). I'd also just like to point out that since usernames are allowed to be up to 256 alphanumeric characters in length, 32 hexidecimal character hash of such usernames would allow for collisions, so I very much doubt it's a hash of the username unless it's glitched.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd also like to know what that's about, it can't be an efficient way to join tables. Also makes those audit columns less than useful.
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.