# Issue with DUO and ADFS Users

**URL:** <https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050>\
**Category:** Get Help\
**Tags:** mfa-duo, mfa\
**Created:** [May 14, 2020, 7:11pm UTC](https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050 "2020-05-14T19:11:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saltuk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saltuk/32/14364_2.png) [@Saltuk](https://community.auth0.com/u/Saltuk)\
**Post date:** [May 14, 2020, 7:11pm UTC](https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050/1 "2020-05-14T19:11:38Z")

</div>

We want to have MFA using Duo enabled also for users from ADFS.

The problem is that the Auth0 user\_id of such users is in the form “user\_id”: “TestAdfs|[testuser@auth0testdomain.com](mailto:testuser@auth0testdomain.com)” - containing a pipe “|” in it. And Duo SDK explicitly disallows usernames to contain pipes - [https://github.com/duosecurity/duo\_nodejs/blob/master/duo.js#L141](https://github.com/duosecurity/duo_nodejs/blob/master/duo.js#L141)

Would you be able to help us here? I tried to google for how to configure ADFS enterprise connection and Duo at the same time, but did not find anything.

---

<div class="post-metadata">

**Author:** ![Saltuk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saltuk/32/14364_2.png) [@Saltuk](https://community.auth0.com/u/Saltuk)\
**Post date:** [May 14, 2020, 7:13pm UTC](https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050/2 "2020-05-14T19:13:31Z")

</div>

With DUO MFA, it is possible to customize the MFA rule to send a custom username attribute. On our [reference DUO rule](https://auth0.com/rules/duo-multifactor), this attribute is disabled. On the following gist, I have used this attribute to send the user id with pipe characters removed.

> <https://gist.github.com/saltukalakus/f3ce3f8e8f2d928f54ce1910522adb7e>

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 15, 2020, 9:00am UTC](https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050/3 "2020-05-15T09:00:49Z")

</div>

Thanks for sharing that Saltuk!

---

<div class="post-metadata">

**Author:** ![Saltuk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saltuk/32/14364_2.png) [@Saltuk](https://community.auth0.com/u/Saltuk)\
**Post date:** [May 30, 2020, 9:12am UTC](https://community.auth0.com/t/issue-with-duo-and-adfs-users/43050/4 "2020-05-30T09:12:39Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
