- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2025 03:13 AM
Hey, I'm working on a custom scoped application, in which im using GlideSessions.lockOutSessionsInAllNodes for some purpose. But getting,
GlideSessions is not allowed in scoped applications
Is there any possible way to use GlideSessions.lockOutSessionsInAllNodes in scoped application ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 08:23 PM
what's your business requirement here?
There are lot of script include which don't work in scoped app
Workaround is
1) create global scope script include, accessible from all scopes
2) then call this global scope script include from your scoped app
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 08:00 PM
Could you explain why you need access via a scoped application?
It's common to create a global script include that your scoped application can access for APIs not available in a scoped application. But messing with GlideSession sounds like a bad idea....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 09:06 PM
🤔🤔
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 10:51 PM
Actually, Ya I wanted to utilize GlideSession to forcefully logout the user, and it worked by created script include, so now this query is clear.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 08:28 PM
Glad that worked, curious to why my answer was overlooked, being the first response and the same answer