Confluence 5.3 and the creator field on content table

Is there a way to retrieve the user name from the hash data that is in the creator field after the 5.3 update? After the update, several of our usage reporting sql scripts no longer show the user id, but instead the new hash data.

ex.

select contentid, title, creator, pageid, contenttype from content c
<th title="contentid">contentid</th><th title="title">title</th><th title="creator">creator</th><th title="pageid">pageid</th><th title="contenttype">contenttype</th>
30606992 my_page_1 8a8340fa42113ad50142113bb9623a35 PAGE

2 answers

1 accepted

Hi,

You can run the SQL query below against your database, and it will return the username.

select username from user_mapping where user_key='8a8340fa42113ad50142113bb9623a35';

I appreciate the quick response. I hope this is the key I need, but I have a small issue with implementing the solution:

My user is in the following groups on our confluence server:

But when I attempt to update our usage statistics scripts with a reference to the user_mapping table in a SQL macro, I get the following:

Error rendering macro 'sql' : org.postgresql.util.PSQLException: ERROR: permission denied for relation user_mapping

  • good very good

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 Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

678 views 21 12
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