# Force direct to a certain topic on OIDC user's first login?

**URL:** https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162
**Category:** SSO
**Created:** [May 7, 2023, 6:21pm UTC](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162 "2023-05-07T18:21:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [May 7, 2023, 6:21pm UTC](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162/1 "2023-05-07T18:21:25Z")

</div>

I came across [this topic](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-users-first-login/221826/2) on the subject, and it had me wondering if we could do the same but for OIDC users connecting that wouldn’t be through an invite.

I saw @SaraDev’s reply that:

> [@Force direct to a certain topic on users first login?](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-users-first-login/221826/2):
>
> You could also rerun the setup wizard for your site and choose the welcome topic for your site, which should be the first topic new users arrive on after they sign up.

On enterprise, how could this be done?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 8, 2023, 6:48pm UTC](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162/2 "2023-05-08T18:48:56Z")

</div>

What problem is being redirected to a particular topic going to solve?

I sort-of solved a similar problem recently with a theme component that redirected to a group page for users who hadn’t joined a group. You can make the group description something like “by clicking the join button I agree to the privacy terms”.

A similar trick could be used to redirect to a topic using some other available data in the `current_user` load that you could then get to change.

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [May 8, 2023, 7:05pm UTC](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162/3 "2023-05-08T19:05:20Z")

</div>

I suppose I really like the idea of everyone who first joins the community starts at a getting started topic that we can write up as the ideal guide that we want to be sure every user indeed gets directed to, automatically, at least once.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 8, 2023, 7:51pm UTC](https://meta.discourse.org/t/force-direct-to-a-certain-topic-on-oidc-users-first-login/264162/4 "2023-05-08T19:51:10Z")

</div>

The `current_user` object includes a `read_faq` value. In a theme component could redirect all users to the `/faq` page until they have read that topic. I’m pretty sure that “read” means “scrolled to the bottom of”.
