# OH-JIRA-0221

### Description

When you encounter error OH-JIRA-0221, then following error message will appear:

OH-JIRA-0221: Either username, password or both provided for JIRA system are invalid or you do not have sufficient permission(s). Please provide the correct credentials and verify your access level. The status code received from server is: 401.

### Cause

Probable causes for this issue are:

1. Either username, password or both provided for JIRA system configuration is incorrect.
2. User doesn't have required privileges in Jira for making this particular REST API request.

### Solution

1. To check whether the username or password provided in system configuration is correct or not, perform these steps:
   1. Login with the same username and password through the Jira UI.
   2. If the login was not possible through Jira UI, please check with your administrator for correct credentials.
2. For checking whether the user has required privileges/sufficient permission(s), please check whether these prerequisites are followed: [Prerequisites for sync user in Jira](/opstech-docs/7.223/connectors/jira.md#prerequisites)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/7.223/help-center-index/troubleshooting-index/errors-index/jira-error-solutions/oh-jira-0221.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
