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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,519
Community Members
 
Community Events
175
Community Groups

Create a User via the API

Hi, I'm creating a script to create a customer through the JSD API
I'm having a hard time creating the custumer, when the API returns I'm getting the following error "insufficient permission to perform requested action, JIRA Administrators global permission is required." But I already gave all permissions and the error persists.

image.png

image.png

1 answer

Hi @Luiz SSO,

Welcome to Atlassian Community!

The user that you are using the the authentication when sending the end point has to be part of one of the groups that you have given global Jira permissions to. Your header in the call needs to include 'Authorization: Bearer <access_token>' or 'Authorization: Basic <user_email:api_token>'

Hi, now I'm getting this return, but I'm wanting to create a new client "customer"image.png

Mikael Sandberg Community Leader Jan 23, 2023

That means that the authentication isn't working. Try using 'Authorization: Basic <user_email:api_token>' instead of Bearer to see if that works. 

Basic authentication with passwords is deprecated. For more information, see

image.png

Mikael Sandberg Community Leader Jan 23, 2023

You should use an API token instead of a password. If you do not have a token already, go to https://id.atlassian.com/manage-profile/profile-and-visibility and from there go to security and generate one. It is recommended that you base64 it once you have gotten it to work.

I generated a token in the profile, even in these images I'm using the token. Bearer 5aT4JXQq8gQEr7SLyT6VFD1E

I managed to solve the problem, I'm using "Insomnia" with this I was creating cookies, I had to delete the cookies generated with this it worked perfectly.

Like Mikael Sandberg likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events