How it is possible to get list of user that are using REST API?

Tatiana Jancusova December 6, 2017

Hello, 

we would like to know, which user connect to JIRA via REST API, is it possible?

JIRA Software v7.2.7

I am looking forward to your reply.

Best regards,
Tatiana

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2017

If you have the access logs enabled, you can analyze it to find the users making a REST request. Another option is to use some monitoring tools to monitor the incoming requests.

Tatiana Jancusova December 6, 2017

Hi,

could you be more specific?

In the access logs I found something like this:

"GET /rest/gadgets/1.0/g/messagebundle/en_UK/gadget.common%2Cgadget.project HTTP/1.1" 200 2892 1 "-" "Apache-HttpClient/4.4.1 (Java/1.8.0_102)" "-"
 "GET /rest/gadgets/1.0/g/messagebundle/und/gadget.quicklinks HTTP/1.1" 200 501 1 "-" "Apache-HttpClient/4.4.1 (Java/1.8.0_102)" "-"
"GET /rest/gadgets/1.0/g/messagebundle/en_UK/gadget.quicklinks HTTP/1.1" 200 501 1 "-" "Apache-HttpClient/4.4.1 (Java/1.8.0_102)" "-"
 "GET / HTTP/1.1" 200 11879 198 "-" "F5-BIGIP" "-"

Regards,
Tatiana

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2017

First, you need to make sure the username is logged. See the Tomcat access logging documentation for help. Make sure you are checking the version used by your JIRA.

Once the user name is logged, you can search for urls starting with /rest and identify the users. You might want to strip out the ones specific to gadgets or other known services but it is up to you.

Also see https://confluence.atlassian.com/enterprise/jira-access-log-analyzer-687025035.html

Suggest an answer

Log in or Sign up to answer