ADFS SmartLink for the Intune Portal

When you’re using both ADFS and Intune, you may want to save your users the annoying redirect after they type in their UPN when they access ADFS secured resources.

I personally like simplicity, so to build a fast and effective method for logging in to the Intune Portal (could be used for other things too) I did the following:

  1. set a DNS record to communicate to my users:, the DNS record points to an IIS server I control
  2. browse to the Intune Portal with Internet Explorer and press F12 to display the developer tools
  3. Click the Network tab and enable recording
  4. Enter your email address

The first URL you’ll see appear in the network monitoring tab, is the ‘smart link’. ¬†It needs to be stripped of user-specific information before you can use it for all your users. Initial example URL:

Now, remove everything between ls/? and &wa, and remove everything from &bk

  1. Our clean ADFS SmartLink now needs to be used for a 302 redirect. You can use your own method, or you can use mine in IIS.
  2. Open IIS Management and create a new Web Site
  3. Give it a name, for example, Portal
  4. Set the binding to your DNS record, e.g. on port 80 so it only redirects requests for the portal
  5. click ok, your website has been created, click on it again and choose HTTP Redirect (this feature won’t be present if you didn’t install it!)
  6. In the ‘Redirect requests to this destination’ box, enter your clean ADFS SmartLink
  7. Under Redirect Behavior, click ‘Redirect all requests to exact destination’
  8. Use Status Code 302 and save. now automatically and invisibly directs the user to the ADFS signin page, which in turn immediately logs the user in to the Intune Portal.


Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

[…] you use ADFS, use a SmartLink for the Intune Portal, so users don’t have to wait for an ADFS […]