The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to list users with access to a space using SQL

Janne Toikander
February 4, 2019

We're using JIRA 7.13.0 and Confluence 6.14.0.

What I want, is a list of usernames who have at least "read access" to a space with key "LIMITEDSPACE".

 

User may exist via:

Confluence Internal Directory

- Remote Jira Directory (which has users in internal JIRA directory and via LDAP directory)

 

How to achieve this?

 

All Atlassian docs I was able find was the opposite way (which spaces a user has access to, etc.)

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
SMS
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 6, 2019

Hi Janne,

The issue here is that a lot of your users might not have been given explicit permissions to a space, but rather have permissions to access the space via a group.

I would recommend reviewing the following article for examples. Although the queries might not be exactly what you need, you should be easily able to rewrite them for your purposes:

Keep in mind that although you're using Jira Remote Directory, any users who have licensed access to Confluence can be found in the database under their user ID in user mapping.

I hope this helps! Let us know if you have any further questions.

Regards,

Shannon

TAGS
AUG Leaders

Atlassian Community Events