login with sso - from email

gtk
Mega Sage

in email script/body when the input is given as ${number} - a link is provided to redirect to the ticket page

in our instance, we have two different types of users with different sso id's (two different compaly)

user1 and user2

if the same email is sent to both users when they click on it then it has to redirect to ticket page using their sso login

can anyone suggest how to do it

thanks in advance

3 REPLIES 3

corina
ServiceNow Employee
ServiceNow Employee

Hello,



Does this approach help?


Configure users for Multi-Provider SSO


Rajesh Mushke
Mega Sage
Mega Sage

Hi gtk



might be helpful to you.



Email links with SSO:


When using External Authentication (or SSO) that requires URL parameter additions, you must establish how to handle links in email notifications.


The default links contain a URL that directs you to a specific location in the instance, like an Incident or Change Request, without incorporating SSO credentials. Below are examples for directing the user to the location in the instance without logging in on the instance login page.


  • Unencrypted HTTP technique to connect to the /demo instance (it does not navigate to specific record):https://<instance name>.service-now.com/?SM_USER=user_name&DE_USER=lQjIVp7aRJtyPx5+2O/vgU24tbE=
  • Link (in an email notification) to a specific record, so that the user first goes to the company's own login portal:
    https://login.company_portal_page.com/nav_to.do?uri=incident.do?sys_id=009f8eda0a0a0b2b01ab4eb094223466%26sysparm_stack=incident_list.do%3Fsysparm_query=active=true
    class="p" style="margin-bottom:10px"
  • The company portal must then take that URL and construct the redirect URL to the instance preserving the segment necessary to access the specific record, and adding the SSO credentials to the end of the URL:
    https://<instance name>.service-now.com/nav_to.do?uri=incident.do?sys_id=009f8eda0a0a0b2b01ab4eb094223466%26sysparm_stack=incident_list.do%3Fsysparm_query=active=true&SM_USER=user_name&DE_USER=lQjIVp7aRJtyPx5+2O/vgU24tbE=



You can also Refer:


Email links with SSO




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Hey Gtk,



Any update on this?



Would you mind please close this thread, then only this will be helpful for other community user.


thanks in advance.....!!!



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke