# TypeError: user.name.split is not a function: SAML setup

**URL:** <https://forums.rocket.chat/t/typeerror-user-name-split-is-not-a-function-saml-setup/10225>\
**Category:** Community Support\
**Created:** [February 1, 2021, 9:38am UTC](https://forums.rocket.chat/t/typeerror-user-name-split-is-not-a-function-saml-setup/10225 "2021-02-01T09:38:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKMishra](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SKMishra](https://forums.rocket.chat/u/SKMishra)\
**Post date:** [February 1, 2021, 9:38am UTC](https://forums.rocket.chat/t/typeerror-user-name-split-is-not-a-function-saml-setup/10225/1 "2021-02-01T09:38:48Z")

</div>

HI All,

i am trying to configure SAML with Windows ADFS, struggling since last 3 days, somehow reached very close but stuck.  
Server Setup Information  
i am getting below error, when trying to access. most of the parameter on SAML page i used as default, except Certificate and basic.  
**Exception while invoking method login Error: TypeError: user.name.split is not a function**

- Version of Rocket.Chat Server: 3.10.3
- Operating System: Centos 7  
-MongoDB version : 4.0

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/e/e7094cf4e92358170d2f8021235894e0a61de928.png)

i am looking for some solution urgently, please help me .

Thanks

---

<div class="post-metadata">

**Author:** ![SKMishra](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SKMishra](https://forums.rocket.chat/u/SKMishra)\
**Post date:** [February 2, 2021, 1:31am UTC](https://forums.rocket.chat/t/typeerror-user-name-split-is-not-a-function-saml-setup/10225/2 "2021-02-02T01:31:06Z")

</div>

Dear All,

Any help on this issue please ?

---

<div class="post-metadata">

**Author:** ![SKMishra](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SKMishra](https://forums.rocket.chat/u/SKMishra)\
**Post date:** [February 2, 2021, 11:50am UTC](https://forums.rocket.chat/t/typeerror-user-name-split-is-not-a-function-saml-setup/10225/4 "2021-02-02T11:50:47Z")

</div>

if i go with this option:

 ![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/8/814d2f9b1daad77db03a67d09bd0f3e85236695e.png)

and remove:

Claim rule:  
Name → username  
this works but Asking user name suggesion during the login time.  
any idea how to avoid that ??

is there any way to Sync LDAP user and authenticate with SAML ? this way it works with SAML and does not ask for username suggesion during login.  
i know this is funny requirment but there is need to go with this.
