Can I get the client ID from OAuth 2.0 Application Registry from the Scripted REST API script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 05:33 AM
Hey,
I'm trying to use OAuth 2.0 configuration for my application to setup access to Scripted REST APIs.
I see there is Client ID and a Client Secret in the Application Registry. As I understand, these are unique and my purpose is to understand who is accessing the API in order to provide him different access.
Is this possible with Application Registry, or the idea of it is to just setup the access for the Scripted REST API (s) for all the users?
How can I differentiate the consumers of my Scripted REST API endpoint?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 07:18 AM
but why you want to get it?
Those are meant to be shared with 3rd party so that they can get the token first and then use the actual scripted REST API endpoint with this token to get the task done by that API
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader