Find all users of all projects using the Jira API

I need to get a list of projects for the current user. I found a solution to the oppozite problem here: JIRA SOAP API: get a list of users

Is there any way to do this through the Jira API?

+4
source share
2 answers

Do you mean which projects the user is allowed to see problems? If so, you want to use

getPermissionSchemes to retrieve the RemotePermissionSchemes array, then use getPermissionMappings for each of them to get the permissions you want to see, for example. View problems (by id). The problem is that you have to do this for all projects (you can cache), but then getting the role for the user will work only for the registered user.

summary: I would write my own SOAP method to do this

+2
source

These are two questions:

  • Which users are currently logged in?
  • List of projects for the user?

For the first, I found several entries in the JARA tracker: Users who are currently logged in

The second option is easier, look at the API

+1
source

Source: https://habr.com/ru/post/1381062/


All Articles