cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2250
Views
5
Helpful
5
Replies

Restrict/Validate the person being visited email address with multiple domain

ryan.chen
Level 1
Level 1

Hi ISE experts

 

First off, I apologies if this topic has been either discussed or created before. This is related to the guide - ISE Guest Self-Registration restrict/validate the person being visited email address. The guide that has been published is sufficient for 1 domain at a time. I've tried to edit the script to allow multiple domains but it seems to be only taking the 1st domain on the list.

 

Is there any way for the script to capture the others ?

 

<script>  
         setTimeout(function(){  
              $.validator.addMethod("customemailvalidator", function(value, element) {  
           return /^(\w+\.?)+@abc\.com$/.test( value );  
         }, 'Please enter a valid email.');  
         
         jQuery("[name='guestUser.fieldValues.ui_person_visited']").rules("add",{customemailvalidator:true});  
         }, 50);  
    </script> 

3 Accepted Solutions

Accepted Solutions

hslai
Cisco Employee
Cisco Employee

I tested this regex @ https://regex101.com

^(\w+\.?)+@(abc|edf|ghi)\.com$

and it's able to match a@abc.com, b@edf.com, and c@ghi.com

 

Screen Shot 2018-08-31 at 8.43.06 PM.png

View solution in original post

Script customizations are a free best effort service, not a break/fix done by the TAC. I updated the linkage here

check out the option on this page

https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414

View solution in original post

5 Replies 5

hslai
Cisco Employee
Cisco Employee

I tested this regex @ https://regex101.com

^(\w+\.?)+@(abc|edf|ghi)\.com$

and it's able to match a@abc.com, b@edf.com, and c@ghi.com

 

Screen Shot 2018-08-31 at 8.43.06 PM.png

Is there a way to  protect your Sponsor Portal users/admins from entering the wrong domain when entering their sponsor (person being visited) email address ?

 

https://community.cisco.com/t5/security-documents/ise-guest-self-registration-restrict-validate-the-person-being/ta-p/3637001

 

With the above i am able to fix this similar issue for the Self-registration portal but this scripts doesn't work in Sponsor portal.

 

 

I have tried that Page Script but it is not working so logged a Cisco TAC Case


Script customizations are a free best effort service, not a break/fix done by the TAC. I updated the linkage here

check out the option on this page

https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414