Block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2024 10:39 PM - edited ‎05-30-2024 10:22 PM
0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 12:05 AM
We can accomplish this as below:
1. Create a custom check box (like Block Portal Access) on Account table(if needs to be blocked on entire account) or Contact table(if needs to be blocked on individual )
2. Update OOB script include SPEntryPage in getFirstPageURL function, add these lines (sample, update as per your requirement) at the top
var contactAccess = new GlideRecord("customer_contact");
contactAccess.get(gs.getUserID());
if(gs.hasRole("snc_external") && contactAccess.u_block_portal_access){
return;
}
else{
remaining code
}
3. Or you can use your own script include and mention it glide.entry.first.page.script and glide.entry.page.script properties
Please mark Helpful or Answered if it had done so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 07:08 PM - edited ‎05-30-2024 10:21 PM
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2024 02:08 AM
That should work, and you need to refine based on your criteria portals being used in your company.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2024 09:39 PM
We have same criteria, so we added a Role to the Index page which prevents anyone without the role from accessing the Portal.
We also added the role to the 'ticket' page which is the view that shows when a ticket is opened on the Portal.