Hi everyone,
I’m trying to audit all the projects in our Jira instance to identify which ones are visible to a broad audience — specifically:
jira-users group, orI’ve tried using ScriptRunner to loop through all projects and inspect their permission schemes. I’m checking for type: group with parameter: jira-users, and also for type: loggedin or applicationRole. But the script keeps returning an empty list — even though I know for sure that some projects (like PRJA) are accessible to any logged-in user.
Has anyone successfully scripted this kind of audit? Or is there a better way to detect this kind of access?
Thanks in advance!
Hi @Marius Skoglund,
The issue is likely with how you're checking the permission types. Here's what to look for:
For ScriptRunner approach:
type: "user" with parameter: null (for "Any logged-in user")type: "group" with parameter: "jira-users"type: "applicationRole" with parameter: "jira-users"Alternative methods:
/rest/api/2/project/{projectKey}/role to check project rolesQuick test: Try checking the permission scheme ID first, then query the scheme directly rather than going through projects.
The "Any logged-in user" permission sometimes shows as type: "user" with empty/null parameter rather than type: "loggedin".
If you share your current ScriptRunner code snippet, I can help debug the specific issue!
Hope this helps if not then DM!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.