Space creation stats per user
Asked by Dominic Oliaro:

Hi all,

Is there a way to query the database for the amount of spaces that each user has created?

I can do pages like this..

select  
u.lower_username,count(u.lower_username)  
from content c join user_mapping u on c.CREATOR=u.user_key  
where c.CONTENTTYPE in ('PAGE') AND c.PREVVER is NULL  
group by u.lower_username  
order by count(u.lower_username) DESC

but can i get that stat data for just how many spaces a user has created?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Confluence does not record the space creator, beyond making them the initial admin (which can be removed)

I would want to look at why you want to know this? Why does it matter?

comments: author: Dominic Oliaro
body: Its mostly for analytics purposes, we can get mostly everything from the built in analytics, except how many spaces a user has made.


author: Nic Brough -Adaptavist-
body: Yes, but what? Why does it matter how many spaces someone creates? What question are you trying to answer?


author: Dominic Oliaro
body: It gives us more insight on how our users are using confluence, Im not sure why this question is relevant?


author: Nic Brough -Adaptavist-
body: I am also stuck on why this question is relevant. I can not see why you need to ask it. Why does it matter that people create spaces?


author: Dominic Oliaro
body: Why does any analytical piece of data matter then? Why is there a whole analytics section included in confluence? Its a piece of data that we would like to analyze for how our confluence instance is being used, and which users are creating the most spaces. We have close to 10,000 spaces on our instance and the more information we can get, the better.


author: Nic Brough -Adaptavist-
body: Because it's useful to know that people are looking at pages, what is and is not being edited or kept up to date - generally what content is useful.

What would knowing that person X created Y spaces tell you that is of any use? It's not going to tell you anything useful for your housekeeping, usage analysis, and upgrade.


author: Dominic Oliaro
body: Its useful to us to see how users are using confluence. For instance, our users are separated by roles...knowing how many spaces are created by managers vs employees or by organization is useful to us. Same thing with creating pages, which i can get.


author: Nic Brough -Adaptavist-
body: But how does that help you with what you are trying to do?  

I know that after the first couple of "why?" questions, it becomes difficult, but in this case, the question still stands. For each of your managers, employees, and organisations, why do they care who is creating spaces?


author: Dominic Oliaro
body: Im not sure why knowing how many pages a user creates is useful but how many spaces they create isnt?


author: Nic Brough -Adaptavist-
body: Page creation tells you who is actively creating content. I don't think that is of much use.

But we still don't know why you think "who created a space" is a useful metric. Why do you think is useful? What would the numbers tell you, and lead you to take action on it?


author: Dominic Oliaro
body: One thing I wanted to look into is if certain users are creating mass amounts of spaces and why, what their role is in our company, and if these spaces are being used. But without that metric of "how many spaces a user has made" I cant

I don't really see a reason why it should be considered completely useless, more data is just more information. But if there is no way to do it, id rather just move on from this and find an answer somewhere else


author: Nic Brough -Adaptavist-
body: "If the spaces are being used" is absolutely useful. You definitely want to know if something is being used - if it's not, consider dumping it! But I don't understand how "who created a space" might be in the slightest bit useful.


Tags: confluence-server

data-center

server