web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Dynamics 365 App for Outlook prompts for ADFS login

(0) ShareShare
ReportReport
Posted on by 12,163

I realize that it uses the IFD Url to access CRM through Outlook but I feel like there should be a way for it to pass-through domain credentials so that the user doesn't have to login every time they click to launch the App.

I have the same question (0)
  • Joe Woltering Profile Picture
    12,163 on at

    Is this a known issue?

  • Jane_D Profile Picture
    5 on at

    Outlook App uses the external url which prompts the login by default. To change this behaviour to SSO you could establish a redirect rule on the IIS

  • Verified answer
    Hüseyin Sahin Profile Picture
    on at

    Hello Joe,

    IFD (Internet Facing Deployment) uses SAML:Password as authentication method. It is expected that the App prompts for a Form Based login to request the Username and Password.

    From security perspective this is expected and enforced to control the access as we explicitly want users to provide the data.

    A pass-through of credentials (like Windows Authentication / WIA) is not recommended.  (Changing the IIS configuration which changes the Web.Config / Config of Dynamics CRM Is unsupported Supported extensions (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | Microsoft Learn)

    In addition you should also check the Post-Installation Guide regarding the App for Outlook and OAuth authentication. Post-installation and configuration guidelines for Dynamics 365 Customer Engagement (on-premises) | Microsoft Learn

    The final question you need to ask yourself if Usability is more important than Security? ;) 

    If you want to reduce the amount of login prompts you can modify the token lifetime values on ADFS to generate authentication token for multiple days till a new prompt appears.

    Example: 

    Additional settings (values are in Minutes)

    Set-AdfsProperties -SsoLifetime 10080     

    Set-ADFSRelyingPartyTrust -Targetname "external crm" -TokenLifetime 7200  

    on top you need to run below statement on CRM 

    Import-Module 'C:\Program Files\Microsoft Dynamics CRM\Tools\Microsoft.Crm.PowerShell.dll'

    $s = Get-CrmSetting OAuthClaimsSettings

    $s.SessionSecurityTokenLifetimeInHours = 24 * 7

    Set-CrmSetting $s

    iisreset

  • Joe Woltering Profile Picture
    12,163 on at

    Thank you for the thorough reply. Yes, I toyed with the idea of extending the token lifetime but never did. This script will come in handy if we ever decide to go that route. We are eventually migrating our org to the cloud where I imagine this will be less of an issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans