Skip to content

Commit 6393743

Browse files
authored
Analyze User access to UI page (#2389)
* Create script.js * Create readme.md
1 parent a1fd5d8 commit 6393743

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Background script to check if a specific user has access to UI page
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
Below background script can be used to analyze if user has access to UI page
3+
*/
4+
5+
var user = '5381f6fbdb5f4d14567a8e7a4896192e'; // Gets current user ID
6+
var pageId = "manage_access"; // Replace with your actual page ID
7+
8+
var spScriptable = new GlideSPScriptable();
9+
var canAccess = spScriptable.canSeePage(pageId);
10+
11+
gs.print("User " + user + " can access page '" + pageId + "': " + canAccess);

0 commit comments

Comments
 (0)