How to find a list of projects that have access keys

Still need help?

The Atlassian Community is here for you.

Ask the community

The content on this page relates to platforms which are supported; however, the content is out of scope of our Atlassian Support Offerings. Consequently, Atlassian cannot guarantee support. Please be aware that this material is provided for your information only and you may use it at your own risk.

Purpose

Finding a list of projects which use project level access keys can be difficult when you have many repositories

Solution

Run the following query on your database. This will list any Projects that have an access key associated with it.

SELECT name
FROM <DB>.project
WHERE id IN 
(
SELECT project_id
FROM <DB>.sta_project_permission
Where user_id NOT IN 
(
SELECT user_id 
FROM <DB>.sta_normal_user 
)
)
;

Please note you'll have to replace <DB> with your database name. 


Last modified on Oct 27, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.