Can we access JIRA rest API through python script if our atlassian account does not allows us to create API token?
I'm able to query directly in browser with API end point, but when I'm trying with Python script I'm getting ConnectTimeout Error
Which authentication method will help me in this case except basic authentication as it is not recommended?
Welcome to the community.
No there is no basic auth option anymore to connect to the API from Atlassian.
There is only token based access.
Contact your site/org admins why they don't allow creation of API tokens, or you might need a specific account where they have setup a token for.
They have probably blocked user API token creation
I may be missing something or using the wrong terms. But I just created a token a minute ago and it works fine....
get an API key | |
Encode | |
REST ..uh, Use |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Org admins can set in the administration to disallow users to create personal API tokens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I understand... In my case, I have an org that has a relationship with Atlassian. In this case, I am a one-man show and have the domain splitdimedata.com.
As the admin for SplitDimeData@Atlassian, I could say my users can't use API tokens,
That's my read. If i am way off, please let me know and thank you for the useful information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ananth Kamaraj ,
Welcome to the community!
So, @Marc - Devoteam is right, once an admin deactivates API tokens, the standard way of authentication will not work any more.
However, there are still options! Whether that's a good idea or a workable approach in your case, I cannot say – you should discuss that with your admins.
You already noticed how you can use REST endpoints in your browser – that's because your browser has a cookie that tells Atlassian Cloud who you are and that you have been authenticated. It's definitely possible to retrieve that cookie from your browser and then use it in a Python script. I feel obliged to point that this is not a supported technique and most likely something your admin does not want you to do if they already disabled the API tokens.
The other option would be using an app that manages API keys, like API Key Manager for Jira. This might be an option if you are admins are not generally against API access, but want more control over what API keys are out there and what they can do. Disclaimer: I work for the vendor behind this app, so I might be kind of biased.
Anyway, hope that helps,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.