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 :
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)
  • Verified answer
    Community Member Profile Picture
    on at

    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"}

  • Rizwan Shaikh Profile Picture
    30 on at

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

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans