What are roles need to be given to user to access api's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 08:05 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 08:08 AM
Hi,
Please check the credentials and make sure that user is active.
Above error is because of wrong credentials.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 08:10 AM
You cat try adding admin role to integration user, you will get same error if credentials are wrong.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 08:27 AM
Is that the good approach to give user admin role to access api ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 07:41 AM
I don't think given admin would be a good approach itil would be fine i believe Thanks