> For the complete documentation index, see [llms.txt](https://docs.opshub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opshub.com/v7.226/help-center-index/troubleshooting-index/errors-index/jira-error-solutions/oh-jira-0221.md).

# 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](/v7.226/connectors/jira.md#prerequisites)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.opshub.com/v7.226/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.
