Application Registries Issue to generate access token

Roshnee Dash
Tera Guru

Hi,

I have created a application registry  'Create an OAuth API endpoint for external clients'.

RoshneeDash_0-1753856518045.png

Here the webservice user has admin and snc_internal role. For this user 

RoshneeDash_1-1753856586432.png

when I am trying to generate the access token for this instance from postman I am receiving 401 error.
I checked with the client_id, client_secret and user password. I am sending correct value only.
But still receiving 401 issue.
Can anyone please help me with this issue? Either I am missing any step or what is the mistake on this?

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash
14 REPLIES 14

Ankur Bawiskar
Tera Patron
Tera Patron

@Roshnee Dash 

why your API user has admin role?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

As at 1st I was getting 401 so I thought to check by proving admin it may work or not.
For the 2nd instance with the same process I am getting the access token. And for that which user I am using is don't have any access but in this mentioned instance I am facing the issue.

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

@Roshnee Dash 

did you try giving web service user role?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 
Yes I had provided web_service_admin

RoshneeDash_0-1753859732170.png

but still facing the issue

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash