Forums

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

Getting "This resource requires WebSudo" error while adding a new user to JIRA

Prabu N June 5, 2018

Trying to add new user, by posting user details in to REST API: "/rest/api/2/user".

If i use postman utility then it works fine. But, if i use VBA code for the same then it throws the error "This resource requires WebSudo".

Any suggestion for resolving the issue?

1 answer

0 votes
Moses Thomas
Community Champion
June 5, 2018

@Prabu NIt  seems like this  happens when your Administrative Session times out and JIRA tends to  ask again for admin credentials (password)

 

Best!

Prabu N June 7, 2018

Thanks for the response, Moses.

Actually, this is happening after immediate login.

Step:1 authentication.

Step:2 user creation (post method for this api). Still it throws the error. I tried .setRequestHeader "X-Atlassian-Token", "no-check". But no success.

It gives {"message":"This resource requires WebSudo.","status-code":401}

Am i missing something at login?

Anybody works in JIRA REST API + VBA..

Suggest an answer

Log in or Sign up to answer