# Different user access login to different page in dash\_auth

**URL:** https://community.plotly.com/t/different-user-access-login-to-different-page-in-dash-auth/69681
**Category:** Dash Python
**Created:** [November 8, 2022, 3:19am UTC](https://community.plotly.com/t/different-user-access-login-to-different-page-in-dash-auth/69681 "2022-11-08T03:19:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)
#### Post date: [November 8, 2022, 3:59am UTC](https://community.plotly.com/t/different-user-access-login-to-different-page-in-dash-auth/69681/2 "2022-11-08T03:59:18Z")

</div>

Hello @beginof,

Sure thing, you can check out my auth flow here:

> [@Dash App Pages with Flask Login Flow using Flask](https://community.plotly.com/t/dash-app-pages-with-flask-login-flow-using-flask/69507):
>
> Hello All! I’ve been working to be able to use the Flask method of logging in. This is an alteration of the flask\_login method provided here: [dash-multi-page-app-demos/multi\_page\_flask\_login at main · AnnMarieW/dash-multi-page-app-demos · GitHub](https://github.com/AnnMarieW/dash-multi-page-app-demos/tree/main/multi_page_flask_login) This will allow you to: restrict individual pages and redirect to login while saving the path (note: you will use the registered page name to restrict) once logged in, will redirect to the saved path or to the home page when logging out, it will redi…

Leveraging this, you can add customizations based upon specific user and access levels. You’ll need to make a different dictionary of access levels, and then test to make sure the user is supposed to be able to see the page they are trying to.

If they dont, then you can return something that says they dont have permission to view the content.

This would look something like:

```auto
if path in perm[current_user]:
     return 'uh-oh, you dont have access to this content'

```

Where perm[current\_user] is a list of paths they dont have access to.

---

_[View the full topic](https://community.plotly.com/t/different-user-access-login-to-different-page-in-dash-auth/69681)._
