cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
 
ISE 2.3 Patch 7 has been posted. This will be the last patch for the ISE 2.3 release!
Choose one of the topics below to view our ISE Resources to help you on your journey with ISE

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

387
Views
5
Helpful
5
Replies
Beginner

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

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
Cisco Employee

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

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

Cisco Employee

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

Cisco Employee

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

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

5 REPLIES 5
Cisco Employee

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

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

Beginner

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

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.

 

 

Cisco Employee

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

Beginner

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

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


Cisco Employee

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

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