What are roles need to be given to user to access api's?

Saikiran4
Tera Contributor

I have created a scripted rest api. Am able to post data from third party tools like "POSTMAN" into service now. When am calling the api in postman or ARC tool, It asked me to enter user name and password. I have given the user details who has admin role. It is working in this case. But if i give the user name and  password who has web_service_admin role, It is giving response as below.

{
    "error": {
        "detail": "Required to provide Auth information",
        "message": "User Not Authenticated"
    },
    "status": "failure"
}
 
 
Could you please suggest what roles exactly the user should have  to access web service. 
4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

Please check the credentials and make sure that user is active.

Above error is because of wrong credentials.

 

Thanks,
Anil Lande

You cat try adding admin role to integration user, you will get same error if credentials are wrong.

 

Is that the good approach to give user admin role to access api ? 

I don't think given admin would be a good approach itil would be fine i believe Thanks