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,463,331
Community Members
 
Community Events
176
Community Groups

Service Desk API resulting in 401 for customers

One of our customers would like to create issues in their Service Desk project through the REST API.

I tried to simulate this by inviting a customer to a testing project, creating API tokens for this customer and trying the REST API methods using Basic Auth . All calls that require authentication end up with a 401 response code.

I am sure the customer has the necessary permissions to see issues in the testing project, as the customer can log in and see the issues in the web interface.

I've tried making the same API calls using my own credentials and that works fine, so I think I'm making the calls correctly.

1 answer

1 accepted

1 vote
Answer accepted

Hello @Luca Winter,

Welcome to Atlassian Community!

For a customer to be able to create issues via REST API, they need to have an Atlassian account in order to create an API token on their profile.

Also, the customer must be listed as an internal user, but it’s not necessary to give them a license to the product. They will be a user without application access.

I can see that you are not a site administrator, so reach out to your site admin for them to follow the steps below:

Go to Cog icon > User management > Product access and disable all of them. Note that, it won’t affect any user. This will only prevent that, when migrating the customer, they won’t count towards a license. 

Screen Shot 2021-07-01 at 14.50.50.png

After that, from the same Administration page, click on Jira Service Management where the customer will be listed. Then, migrate the account to Atlassian account.

Screen Shot 2021-07-01 at 14.54.08.png

Once this is done, the customer will be listed as an internal user, but since they don’t have applicate access (since it was disabled on Product access), they will only be able to access the portal. 

Their profile should look like this:

Screen Shot 2021-07-01 at 14.58.48.png

After that, they can generate an API token from their profile on https://id.atlassian.com/manage-profile/security/api-tokens and the API call should work.

Please, give it a try and let us know how it goes.

Kind regards,
Angélica

Hi Angélica,


Thank you very much for the detailed response, it works perfectly!


Best regards,
Luca

Like Angélica Luz likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events