# How do I prevent certain users from accessing another site that is part of SSO?

**URL:** <https://community.auth0.com/t/how-do-i-prevent-certain-users-from-accessing-another-site-that-is-part-of-sso/59039>\
**Category:** Get Help\
**Tags:** login\
**Created:** [March 8, 2021, 2:23am UTC](https://community.auth0.com/t/how-do-i-prevent-certain-users-from-accessing-another-site-that-is-part-of-sso/59039 "2021-03-08T02:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloraymond](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/helloraymond/32/28025_2.png) [@helloraymond](https://community.auth0.com/u/helloraymond)\
**Post date:** [March 8, 2021, 2:23am UTC](https://community.auth0.com/t/how-do-i-prevent-certain-users-from-accessing-another-site-that-is-part-of-sso/59039/1 "2021-03-08T02:23:43Z")

</div>

I’m looking at migrating an Angular SPA/Rails API app to Auth0, alongside a WordPress blog.

1. I have setup the WP Auth0 plugin, which created a custom database.
2. I will move the main app to Auth0 via “automatic database migration”, into the same custom database that was created by during the WP Auth0 migration process.

However, I don’t want all my users to have access to WP, only a subset. How can I achieve this?

---

<div class="post-metadata">

**Author:** ![cibrax](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cibrax/32/27644_2.png) [@cibrax](https://community.auth0.com/u/cibrax)\
**Post date:** [March 8, 2021, 4:09pm UTC](https://community.auth0.com/t/how-do-i-prevent-certain-users-from-accessing-another-site-that-is-part-of-sso/59039/3 "2021-03-08T16:09:55Z")

</div>

Hi,

That should be handled by your plugin somehow. See if you have an option to require user authentication for some route/URLs. That’s how it is typically handled in other development platforms/stacks. You made some URLs public for anonymous access and other ones private for authenticated users only.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 31, 2021, 6:34pm UTC](https://community.auth0.com/t/how-do-i-prevent-certain-users-from-accessing-another-site-that-is-part-of-sso/59039/4 "2021-03-31T18:34:04Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
