How to list all of the calendars your Confluence users had subscribed to

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

If you are an administrator of Confluence and you'd like to list all of the Calendars your Confluence users had subscribed to in your Confluence instance, you may then use the following query.

Solution

To list all of the Calendars your users had subscribed to in your Confluence instance, together with the subscription date:

⚠️ The following query was tested on PostgreSQL and MySQL

PostgreSQL

1 2 3 4 5 SELECT um."username" AS "Username", tc."NAME" AS "Calendar Name", to_timestamp(CAST(tc."CREATED" AS bigint)/1000) AS "Subscription Date" FROM "AO_950DC3_TC_SUBCALS" tc LEFT JOIN "user_mapping" um ON um."user_key" = tc."CREATOR" WHERE tc."CREATOR" = um."user_key" AND "PARENT_ID" IS NULL AND "SUBSCRIPTION_ID" IS NOT NULL;

MySQL

1 2 3 4 5 6 7 SELECT um.username AS Username, tc.NAME AS CalendarName, FROM_UNIXTIME(tc.CREATED/1000) AS SubscriptionDate FROM AO_950DC3_TC_SUBCALS tc LEFT JOIN user_mapping um ON um.user_key = tc.CREATOR WHERE tc.CREATOR = um.user_key AND PARENT_ID IS null AND SUBSCRIPTION_ID IS NOT NULL;

ℹ️ The "SUBSCRIPTION_ID" IS NOT NULL will filter out the Creator of the calendar. If you wish to get the result together with the Creator of the calendar, you can remove the line.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.