cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

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.

505
Views
0
Helpful
1
Replies
gpinero
Beginner

Cisco ISE guest portal: person being visited modification

Hi, I'm trying to chagne some funcionality in guest portal auto register and aproval. Now with ISE you have a field with: Person being visited (email address)

When guest user register in this portal, it's send an email to validate this access. Well, I'd like to achive this:

1- Insert a selector in this field (Person being visited), something like this:

<select name="guestUser.fieldValues.ui_person_visited" id="guestUser.fieldValues.ui_person_visited" form="selfRegForm">
<option value="one@email.com">Location 1</option>
<option value="two@email.com">Location 2</option>
<option value="three@email.com"> Location 3</option>
</select>

 

The user need to select location (in my case WLC is central switched") to register the guest account.

 

With this config the "Person being visited" email is different depending on that user select and email send by ISE arrive to differentes email addresses and not to all of emails in a list if I use email appoval requets to sponsor email addresses listed.

 

I think it's possible to achieve but JQuery is difficult for me, I need to replace Pearson bein visited field with this list, but a cannot do it by the moment

 

Thanks

Gabi

 

CCNP R&S, CCNP Security, CCNA CyberOps
1 ACCEPTED SOLUTION

Accepted Solutions
gpinero
Beginner

With this modification it can be done:

 

<script>

(function(){
setTimeout(function(){

//Put your data here. Left side is visible to user - should be a name. Right side email address.

var persons = {

'Edificio Habitamia': 'gpinero@gmail.com',
'Edificio Pinares': 'undergl@gmail.com'
}

jQuery("input[name='guestUser.fieldValues.ui_person_visited']").parent().hide();

jQuery("input[name='guestUser.fieldValues.ui_person_visited']").parent().after("<div class='ui-select'><div data-corners='true' data-shadow='true' data-iconshadow='true' data-wrapperels='span' data-icon='arrow-d' data-iconpos='right' data-theme='a' class='ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-right ui-btn-up-a' id='outerDiv'><span class='ui-btn-inner'><span class='ui-btn-text'><span id='displayName'></span></span><span class='ui-icon ui-icon-arrow-d ui-icon-shadow'> </span></span><select name='guestUser.fieldValues.ui_person_visited_name' id='guestUser.fieldValues.ui_person_visited_name' class='ui-body-a'></select></div></div>");

jQuery.each( persons, function( key, value ) {

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').append("<option value="+value+">"+key+"</option>");

});

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name > option:first-child').attr('selected', 'selected');

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').on('change', function(evt){

jQuery("#guestUser\\.fieldValues\\.ui_person_visited").val(jQuery(this).val());

jQuery('#displayName').html(jQuery(this).find('option:selected').text());

});

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').trigger('change');

},250);

})();

</script>

 

https://community.cisco.com/t5/security-documents/ise-guest-self-registration-person-being-visited-sponsor-choose/ta-p/3636453

 

CCNP R&S, CCNP Security, CCNA CyberOps

View solution in original post

1 REPLY 1
gpinero
Beginner

With this modification it can be done:

 

<script>

(function(){
setTimeout(function(){

//Put your data here. Left side is visible to user - should be a name. Right side email address.

var persons = {

'Edificio Habitamia': 'gpinero@gmail.com',
'Edificio Pinares': 'undergl@gmail.com'
}

jQuery("input[name='guestUser.fieldValues.ui_person_visited']").parent().hide();

jQuery("input[name='guestUser.fieldValues.ui_person_visited']").parent().after("<div class='ui-select'><div data-corners='true' data-shadow='true' data-iconshadow='true' data-wrapperels='span' data-icon='arrow-d' data-iconpos='right' data-theme='a' class='ui-btn ui-shadow ui-btn-corner-all ui-btn-icon-right ui-btn-up-a' id='outerDiv'><span class='ui-btn-inner'><span class='ui-btn-text'><span id='displayName'></span></span><span class='ui-icon ui-icon-arrow-d ui-icon-shadow'> </span></span><select name='guestUser.fieldValues.ui_person_visited_name' id='guestUser.fieldValues.ui_person_visited_name' class='ui-body-a'></select></div></div>");

jQuery.each( persons, function( key, value ) {

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').append("<option value="+value+">"+key+"</option>");

});

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name > option:first-child').attr('selected', 'selected');

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').on('change', function(evt){

jQuery("#guestUser\\.fieldValues\\.ui_person_visited").val(jQuery(this).val());

jQuery('#displayName').html(jQuery(this).find('option:selected').text());

});

jQuery('#guestUser\\.fieldValues\\.ui_person_visited_name').trigger('change');

},250);

})();

</script>

 

https://community.cisco.com/t5/security-documents/ise-guest-self-registration-person-being-visited-sponsor-choose/ta-p/3636453

 

CCNP R&S, CCNP Security, CCNA CyberOps

View solution in original post

Content for Community-Ad