Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting 403 error on getUserAPI

ajith May 13, 2024

Hi Team,
getting 403 error while calling getUserAPI using API Token. It was worked till yesterday.

URL : https://funvane-team-cd24ir8k.atlassian.net/rest/api/3/users

Thanks,
ajithkumar.M

1 answer

0 votes
Vijay Dadi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2024

Hello @ajith ,

are you using any search criteria to get users or just blank search. I have used like this

https://xxx.atlassian.net/rest/api/3/user/search?query={{object.Email}}. This searches the users using the email address provided.

Also while making send web request to this end point, the authorization token used should be base64 encoded. If you have not encoded your API token to base 64, i suggest you do that and that should solve your issue.

Vijay

ajith May 16, 2024

We are not using any search criteria. Instead, we are encoding those values already. It was still working with the old tokens. When I tried with the new API token, I encountered that error. I simply signed up for Jira and generated an API key token. Then, I attempted to call that API. Is there anything that needs to be configured before making that API call?
Because i tried 
Bulk get users API, i am getting "Client must be authenticated to access this resource."


ajith May 16, 2024

any update on this?

Vijay Dadi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2024

Can you share the web request details you are making, what is the end pint?

ajith June 21, 2024

@Vijay Dadi Please check the request details below. Please give high priority to this.


URL: https://site4201.atlassian.net/rest/api/3/users
userName :  
cigade8260@gawte.com

image.png



image.png

Vijay Dadi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2024

hello @ajith ,

To access user table, you have to be a jira admin not just project admin. Try the same automation with a user who is a jira admin. Hope this helps !

Get User API.png

ajith June 22, 2024

@Vijay DadiI created a Jira instance with cigade8260@gawte.com. He is the only User in the instance. He is part of all Jira Admin groups. Please tell me what I am doing wrong here.

image.pngimage.pngimage.png

Suggest an answer

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

Atlassian Community Events