Retrieve members in securitylevels

Hi,

is it possible to access the groups/users/roles which are referred by the securitylevel of an issue via the REST API? I have seen that the security level is exposed in the issue response of the REST API. However, if I use rest/api/2/securitylevel/<id>, the response is very sparse. Even the other way around, i.e., accessing the roles via the REST API apparantly does not give me the permissionlevels in the individual projects.

Perhaps there is another way for retrieving the members in the securitylevels?

Thanks in advanved!

1 answer

1 accepted

1 vote

No. The security doesn't work that way, it's all about "can this user see that issue", so it starts with the issue and checks the user access. There;s nothing that lists users that have permission, and there's even less when you're out of context and don't have a specific issue.

So there's certainly nothing exposed by REST to get lists of users.

I think, as admin you can check a lot, if the admin himself is always a member of the security level.

e.g.:
If I want check, if a certain assignee is included in a security level, I can search by using the issue navigator:
level = "Visible for project users only" and assignee = <username>

Thanks for the answer, but I want to do it the other way around, i.e. I want to get all the users and groups who can see an issue if I have already the issue and its security level.

As I said before, the system simply doesn't have any way to do that.

If you want to do it, you'll need to write your own plugin to provide that function.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 7 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

86 views 4 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you