Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Validate user in Jira with Python

Good afternoon, could someone help me? How do I validate the user in Jira ? I'm using Python, below is my code. When the user is not registered in Jira he send me an error



class Atlassian: JIRA_FIT = '' jira_api_issue = '/rest/api/2/issue/'
def __init__(self, usuario, token): try: self.jira = Jira( url=self.JIRA_, username= usuario, password= token ) except: print("An exception occurred")

1 answer

1 accepted

1 vote
Answer accepted
Dario B Atlassian Team Dec 01, 2020

Hello @Watson Vieira da Rocha ,

Welcome to the Atlassian Community!

I am not sure I understand what you mean with "validate the user in Jira". Can you kindly provide more details on what you are trying to achieve?

In case you are actually asking how to authenticate REST API calls in Python using basic auth (with Atlassian account email address and API token), then you can find an example in below thread:

If you are trying to do anything else, please let me know.



Hello @Dario B  How are you ?

I need to do something like, if the user enters their wrong password or their wrong login that returns an error like "Wrong or unregistered password or login"


Thanks very much !

Hi @Watson Vieira da Rocha ,


I don't have enough context to be able to help you and I am not even sure what you are trying to achieve can actually be done since REST API calls are not authorized using the same credentials the users enter when they log-into Jira Cloud.

The different ways to authorize REST API calls are listed below:


However, if you are looking for advise on how to develop your app then I might not be the best person to help. I'd advise to try the resources listed in instead.




I hope this helps.

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you