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 a1fd5d8 commit 6393743Copy full SHA for 6393743
Server-Side Components/Background Scripts/Analyze user access UI page/readme.md
@@ -0,0 +1 @@
1
+Background script to check if a specific user has access to UI page
Server-Side Components/Background Scripts/Analyze user access UI page/script.js
@@ -0,0 +1,11 @@
+/*
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