# Different page per role or per user

**URL:** <https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803>\
**Category:** Ignition\
**Created:** [June 15, 2021, 6:26pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803 "2021-06-15T18:26:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spm](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@spm](https://forum.inductiveautomation.com/u/spm)\
**Post date:** [June 15, 2021, 6:26pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/1 "2021-06-15T18:26:58Z")

</div>

Hello,  
I am using ignition 8.1 and perspective. I want to be able to put, ideally, per role go to a different landing page. Alternatively, I could do this per user, but I would rather by role since that is what the security is based off of.

I saw a couple of topics about this about a session startup, which would be fine but those scripts don’t seem to work. Is there an easy way that once a user logs in we can direct them to their landing page based on something?  
Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [June 16, 2021, 7:28am UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/2 "2021-06-16T07:28:14Z")

</div>

Hi @spm, in the past I’ve used a dummy start page as the main page. The dummy page has nothing on it other than maybe a loading icon (to handle a particularly slow session, etc.). In the background, it has a startup script for the View that does the logic and redirect.

Not the most elegant solution but it works in cases where you need to run the script after the session starts (session startup scripts are run before a session starts, so session props etc. are not initialised).

---

<div class="post-metadata">

**Author:** ![spm](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@spm](https://forum.inductiveautomation.com/u/spm)\
**Post date:** [June 16, 2021, 2:21pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/3 "2021-06-16T14:21:24Z")

</div>

Thanks for the hint in the right direction. We can’t be the only ones that want to do this. This seems like it should be a key feature. Role based visualization has been around for years. This should be base functionality, possibly tied to roles with a landing page per role. Just my opinion I suppose.

More details would help if anyone has them though! We are quite new to ignition.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [June 16, 2021, 2:42pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/4 "2021-06-16T14:42:05Z")

</div>

Another option would be to add a property change script to the `session.auth.user.id` property that does the navigation based on the role(s) that the user has. However, every time the user changes they would be redirected to the page/view, which may not be desirable.

> [@spm](#):
>
> possibly tied to roles with a landing page per role

The only issue I can see with this is with the flexibility of Ignition security. There is no hierarchy in the roles a user has; therefore, if a user has multiple roles there is no way to control which redirection has priority 🙂

There may be a better way of doing it but I haven't found one yet (although I haven't spent a lot of time experimenting with this issue 😅).

---

<div class="post-metadata">

**Author:** ![Carter\_Wente](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Carter\_Wente](https://forum.inductiveautomation.com/u/Carter_Wente)\
**Post date:** [August 5, 2024, 8:03pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/5 "2024-08-05T20:03:49Z")

</div>

I'm currently trying to figure this out.I have a guest mode where I want it redirected to a certain view only page.

---

<div class="post-metadata">

**Author:** ![spm](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@spm](https://forum.inductiveautomation.com/u/spm)\
**Post date:** [August 5, 2024, 9:34pm UTC](https://forum.inductiveautomation.com/t/different-page-per-role-or-per-user/47803/6 "2024-08-05T21:34:42Z")

</div>

Carter, I did what Matthew suggested and put a dummy landing page. In that page, I put a hidden text box that gets the users role and then have a script running when the text gets filled in which then redirects the user based on their role to the correct landing page. This is a necessity with the Perspective app because it always sends them to the main page. I hope that helps.
