How to get the table to find out permission of a space in confluence ?

Vinod Dosemane December 17, 2018

How to get the table to find out permission of a space in confluence ? for e.g who has access to that space? Read/write/admin

2 answers

1 vote
Taranjeet Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 17, 2018

@Vinod Dosemane Please use Space Permissions in Confluence as documented here: https://confluence.atlassian.com/doc/space-permissions-overview-139521.html

 

For Tables in Confluence database, which you can use to get this information, you can refer Confluence Database Schema here: https://confluence.atlassian.com/doc/confluence-data-model-127369837.html, and use the required combination of tables to get information as you need.

 

This KB article can be very helpful for you if you want to extract permissions information for a Space from Confluence database: https://confluence.atlassian.com/confkb/how-to-check-permissions-for-a-space-via-sql-queries-717062216.html

 

Vinod Dosemane December 17, 2018

Hi Taranjeet,

Thanks for your reply.

Space key is comp and spaceid is 16 . How do i put these in the below query and execute?


SELECT sp.permid, sp.permtype, s.spacekey, s.spacename, sp.permgroupname, um.lower_username
FROM SPACEPERMISSIONS sp
JOIN SPACES s ON sp.spaceid = s.spaceid
LEFT JOIN user_mapping um ON sp.permusername = um.user_key
WHERE s.spacekey = '<SPACEKEY>';

Taranjeet Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 17, 2018

@Vinod Dosemane You only need to replace your Space Key i.e. comp, in place of <SPACEKEY> in the above SQL query and then execute this query against your Confluence database. This query should work for PostgreSQL and MySQL, but may require some modification for other databases, if the SQL syntax is different for them.

Taranjeet Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 20, 2018

@Vinod Dosemane Did my answer worked for you? If yes, can you please mark the answer as accepted, for others to follow.

Taranjeet Singh
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2019

@Vinod Dosemane Did my answer worked for you? If yes, can you please mark the answer as accepted, for others to follow.

0 votes
Ryan Fish
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2018

@Vinod Dosemane

As an admin, use space tools located at the bottom left of your page. Then select permissions.
documentation for space permissions.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events