Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Does Jira consider a PAT a "Signed in user" when creating a ticket using the API and a script?

Jeramy
Contributor
December 1, 2023

I have a Jira project that uses the default permission scheme. This scheme allows most things, but for signed in users (Application Access - Any logged in user). If I write a script that creates tickets using a service account and a PAT, is that connection considered "signing into Jira" or do I need to update my permission scheme to include that service account?

Form my years of experience, I would say that it does not. But, I would love to hear your input.

Thank you.

1 answer

0 votes
Sunny Ape
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 3, 2023

Hello @Jeramy 

PATs belong to user accounts. Whether you consider that user account to be a 'service account' is entirely up to you.

It's considered good practice to have just such a 'special' user account set aside and used exclusively for performing admin / background tasks via the REST API. Give that user account a really obvious name to make it easy to differentiate via the event logs any action done by that account compared to a user account belonging to 'real' user.

Jeramy
Contributor
December 4, 2023

@Sunny Ape  - Thank you for the response. Follow-up question/related question.

If the Create Issues permission in the project's permission scheme is set to "Application access - Any logged in user", will that service account be able to create a ticket using the API outside of Jira?

 

 

Create Issue Permission.jpg

Sunny Ape
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, 2023

Try it for yourself and find out.

Have fun.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events