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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is it possible to modify ADFS login without domain?

(0) ShareShare
ReportReport
Posted on by

Hi All,

I'd like to remove domain when users sign in with account.

(Normally, we must sign in with "domain\username".)

Have any solutions like adding script in adfs login page or using powershell command that I can modify?

here's my server info below:

Server OS : Windows Server 2012 R2

CRM ver. : 2015

Thanks,

Joshua

*This post is locked for comments

I have the same question (0)
  • Rizwan Shaikh Profile Picture
    30 on at
    RE: Is it possible to modify ADFS login without domain?

    Did you find any solution yet ? please let me know as i am also into same situation.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Is it possible to modify ADFS login without domain?

    On AD FS 3 it is possible to add the domain into the box before they start typing so that they only have to enter the username.

    Customized Log In Change DOMAIN to your domain name in the instructions below.
    Open PowerShell
    * PS C:\Users\adfsuser>mkdir adfstheme
    * PS C:\Users\adfsuser>
    Import-Module ADFS
    * PS C:\Users\adfsuser>
    New-AdfsWebTheme –Name custom –SourceName default
    * PS C:\Users\adfsuser>Export-AdfsWebTheme –Name default –DirectoryPath C:\adfstheme\ Set-AdfsWebConfig -ActiveThemeName custom
    Edit C:\adfstheme\script\onload.js
    * //Add lines 65, 66,& 67
    * document.getElementById('loginMessage').innerHTML = "<b>Login using your Windows username.</b> \n DOMAIN\\windowsusername";
    * document.getElementById("userNameInput").placeholder="DOMAIN\\";
    * document.getElementById("userNameInput").value="DOMAIN\\";
    * Open PowerShell
    * PS C:\Users\adfsuser> Set-AdfsWebTheme -TargetName custom -AdditionalFileResource @{uri=’/adfs/portal/script/onload.js'; path=”C:\adfstheme\script\onload.js"}

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans