Bypass domain name with credentials SharePoint, .Net site from IIS

Does your Organization have a single Domain and still requires users to pass-in the Domain name in the credentials to login (Domain\userid) ?

There is a way to bypass this through IIS (but only if your organization has a single domain).

We will enable Basic Authentication on our site which is a Challenge-Based authentication mode and will prompt the user to pass their credentials in order to login.

  1. Navigate to your site from IIS.
  2. Click on 'Authentication' under the IIS heading.

  3. Authentication

  4. Right click Basic Authentication --> Enable (Important - This will send the credentials in plain text, so it is recommended to use SSL certificate (TLS) if using this kind of authentication and have an https site).

  5. You can also use different combinations of authentication (say Windows + Forms)

  6. Right click Basic Authentication --> Edit --> Enter the Default domain - This domain will be passed by default and user can pass just the userid

  7. Edit Basic Authentication Settings
    Edit Basic Authentication Settings

  8. Now if you access the SharePoint site URL, you should be able to get in by just passing the User Id and without the domain name.

Though this approach works well, it is advisable to consult your respective network and security team before implementing.

Have Questions? Post them here!
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.