Skip to content

Commit 7cdedd0

Browse files
authored
Create script.js
1 parent 69c730d commit 7cdedd0

File tree

1 file changed

+11
-0
lines changed
  • Server-Side Components/Background Scripts/Analyze user access UI page

1 file changed

+11
-0
lines changed
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)