We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c730d commit 7cdedd0Copy full SHA for 7cdedd0
Server-Side Components/Background Scripts/Analyze user access UI page/script.js
@@ -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