unable to create user through restAPI by following URL
URL: https://api.atlassian.com/ex/jira/{{cloudId}}/rest/api/3/user
Method: Post
the error msg which i got is
OAuth 2.0 is not enabled for method: POST /rest/api/3/user
I'm seeing a similar issue with the create user api endpoint at https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-post
I get a 500 error with the not helpful message
{'errorMessages': ["The request failed. We're not sure what went wrong. Try again and if the problem persists, contact Jira support."], 'errors': {}}
The endpoint has been working for months, so something in the api changed and the documentation hasn't been updated to reflect it, or they just shut the end point down since it was experimental.
Either way it's broken and has been for a few days. I have a support ticket open, so hopefully we'll get some answers.
I think OAuth 2.0 might be too much of a step if you simply just wanted to create users. A simple script using your direct instance URL should suffice. An example is shown on the API docs in different languages.
https://your-domain.atlassian.net/rest/api/3/user
The API URL can be in the above form, then you can authenticate with your email address + API token. Also, the docs say "Connect apps cannot access this REST resource."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Admin Test
Welcome to the Community!
You need to authenticate your API requests using OAuth 2.0. To do so, you have to obtain an access token from Jira and include the access token in your API requests as an Authorization header.
Authorization: Bearer <access_token>
I hope that helps
Tuncay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tuncay,
i followed above steps to create access token. Eventhough i am getting same error.Same Access token is used in getUsers API and it is working fine. When comes to CreateUsers API, I am getting error.
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.