# What sets suppress\_welcome\_message for SSO logins

**URL:** <https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030>\
**Category:** Support\
**Created:** [12 Settembre 2016, 7:58pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030 "2016-09-12T19:58:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eriko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eriko/32/1915_2.png) [@eriko](https://meta.discourse.org/u/eriko)\
**Post date:** [12 Settembre 2016, 7:58pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/1 "2016-09-12T19:58:52Z")

</div>

So for some users login in via SSO they are getting the ‘welcome\_message’ each time they login. I think that it has something to do with  
[https://github.com/discourse/discourse/blob/master/app/models/discourse\_single\_sign\_on.rb#L70](https://github.com/discourse/discourse/blob/master/app/models/discourse_single_sign_on.rb#L70)

What I can not figure out is what should be setting ‘suppress\_welcome\_message’ It is possible that I have something setup incorrectly about the accounts that is causing this but I can not see what controls the value of suppress\_welcome\_message

---

<div class="post-metadata">

**Author:** ![Nick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick/32/235642_2.png) [@Nick](https://meta.discourse.org/u/Nick)\
**Post date:** [12 Settembre 2016, 9:21pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/2 "2016-09-12T21:21:57Z")

</div>

I believe this is passed to DiscourseAPI - so wherever that is being called, the query param suppress\_welcome\_message needs to be set to true. I’ll try to find a practical example for you.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [13 Settembre 2016, 5:05am UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/3 "2016-09-13T05:05:52Z")

</div>

~~That’s actually a method call, I believe.~~

We can see here that it’s one of the SSO payload fields:

[https://github.com/discourse/discourse/blob/master/lib/single\_sign\_on.rb](https://github.com/discourse/discourse/blob/master/lib/single_sign_on.rb)

---

<div class="post-metadata">

**Author:** ![eriko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eriko/32/1915_2.png) [@eriko](https://meta.discourse.org/u/eriko)\
**Post date:** [13 Settembre 2016, 4:07pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/4 "2016-09-13T16:07:11Z")

</div>

Hmm ok have added that to my cas\_sso implementation and set it as false. I will see what the effected user experience.

That said can you think of any reason that some people would keep getting the new user message and others would not?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [5 Marzo 2019, 11:36pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/5 "2019-03-05T23:36:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [6 Aprile 2020, 6:42pm UTC](https://meta.discourse.org/t/what-sets-suppress-welcome-message-for-sso-logins/50030/6 "2020-04-06T18:42:51Z")

</div>


