Skip to main content

Hide Elements on the Login Page of a Privileged Website

Some login pages show elements that users should not see or use when they connect through PAM, such as a banner, a secret, a QR code or a link. You can hide these elements for a Privileged Website. To do this, you copy the selector of each element from the developer tools of your browser and paste it in the Privileged Website.

Prerequisites

  • A Privileged Website in PAM.
  • The Administrator with Billing role, or being listed as a manager of the Privileged Website.
  • A browser with developer tools. The steps below use Google Chrome.

Step 1: Copy the Selector of the Element​

The selector identifies the element in the HTML of the page. Do this for each element that you want to hide.

  1. In your browser, open the login page of the website.
  2. Right-click the element that you want to hide and click Inspect. The developer tools open with the HTML of the element selected. When you move the mouse over the HTML, the browser highlights the element on the page.
  3. In the developer tools, right-click the selected HTML element and click Copy > Copy selector.

Developer tools Inspect on a login page element

Copy selector option in browser developer tools

Step 2: Add the Selector to the Privileged Website​

  1. In the JumpCloud Admin Portal, go to Access > PAM > Privileged Resources > Privileged Websites.
  2. Click the name of the Privileged Website, or click Add Privileged Website to create one.
  3. Go to the Autofill Parameters card, the last card of the form.
  4. In Field Selector to Hide, paste the selector that you copied.
  5. Save the Privileged Website.

The selector depends on the website and on the element. Paste it exactly as the browser copied it.

Step 3: Refresh the autofill parameters in the extension​

JumpCloud Go™ keeps the autofill parameters in a cache. If you save a change in the Privileged Website and test it right away, the extension can still use the previous parameters. Refresh the cache so that the extension receives the new configuration.

  1. In your browser, click the JumpCloud Go™ icon to open the extension. If you do not see the icon, open the Extensions menu of the browser and select JumpCloud Go™.
  2. Select Settings.
  3. In the Autofill Parameter Cache, click Refresh.

JumpCloud Go Settings with Autofill Parameter Cache Refresh

Hide More Than One Element​

Copy the selector of each element as described in Step 1. In Field Selector to Hide, paste all the selectors and separate them with a semicolon (;). For example:

body > div.container > div:nth-child(7) > div;body > footer;body > div.container > small;body > nav

Check the Result​

Connect to the Privileged Website from the User Portal and confirm that the elements do not appear on the login page.

Tips​

  • Copy the selector from the same login page that users see in PAM.
  • If the website changes its login page, a selector can stop matching the element. Copy the selector again and replace it.
  • To show an element again, delete its selector from Field Selector to Hide and save the Privileged Website.

Was this information helpful?