Confluence database application- user permission

Hsu Yao Chang September 11, 2015

Dear all, 

Would it be possible to find some user permission setting from database by using sql search? For example, we want to check some account can use some space or not ? Thank you.

3 answers

0 votes
Guilherme V.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 11, 2015

Hi Hsu,

Nic's option is the best way to find the user's permissions, but if you'd like to improve your SQL knowledge, you can use the following plugin:

You can check the Confluence's table in your database tool manager.

Cheers,

 

 

0 votes
Stephen Deutsch
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.
September 11, 2015

If you really need to use it programmatically, you can use the XML-RPC/JSON-RPC API by calling the getPermissionsForUser: https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis/remote-confluence-methods#RemoteConfluenceMethods-Permissions.1

That will tell you if a user can use some space.

0 votes
Nic Brough -Adaptavist-
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.
September 11, 2015

That's a very long winded way of doing the job, as you'd need to build a query that reads the space settings, user tables, and groups.

Do this the easy way - space admin -> Permissions.  Is your user named, or in any groups on the page?  Job done.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events