
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2020 11:21 AM
I have a requirement on certain tasks to list out the files attached to the task rather than send them as actual email attachments. This is due to the volume and size of attachments on these tasks.
I've successfully created a mail script which lists out the files attached to the task, with a link to each attachment.
Where I'm running into trouble is: if a user has no roles in the system (i.e. they are a requestor and not a fulfiller), if they are not already signed in, when clicking the attachment link, after SSO auth they get directed to our portal homepage (i.e. https://instance.service-now.com/sp). If they're already signed in, they are able to directly access the attachment (https://instance.service-now.com/sys_attachment.do?sys_id=XXXXXXXX)
Does anyone have an idea of how I can make it so the user can do access the attachment via a single click, even if they don't have a logged in session? We have SSO enabled, so I'm not concerned about the login process, but like I said, for those without roles, they get directed to the SP homepage after login instead of being able to access their attachment directly as expected.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-17-2020 08:41 AM
Thank you. I'm going to use a combination of updating the login/redirect script as well as a dedicated portal page to make the user experience better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2020 11:31 AM
Are wanting this?
- Non-rolled user
- Not logged in
- Clicks link
- Redirect to SSO
- Authenticates successfully
- Redirect to https://instance.service-now.com/sys_attachment.do?sys_id=XXXXXXXX
In other words, you want to retain correct deep linking functionality after SSO.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2020 11:34 AM
Correct, that's exactly the behavior I'm looking for. However, it seems that our SP implementation is forcing non-roled users to the SP immediately after successful authentication.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2020 11:36 AM
Reading through a similar thread I believe this would be a configuration on the SSO side. Check out https://community.servicenow.com/community?id=community_question&sys_id=4868c3eddb1cdbc01dcaf3231f96...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2020 11:38 AM
Also might be that non-rolled users are being forced to the ESS portal. Check out:
https://community.servicenow.com/community?id=community_question&sys_id=19c7cbe9db1cdbc01dcaf3231f96...
Please ā Correct if this solves your issue and/or š if Helpful