Forum Discussion
Jeff MacPhail
Mar 28, 2017Copper Contributor
Redirect Users away from the "Request Access" page to a specified page they have access to
We have a subsite in SharePoint Online that we use as an extranet for external vendors. Works great.
The problem is that they frequently try to navigate via URL to the top level Site Collection or tenant Site Collection, which they don't have access to, and they are met with a button to request access. They get confused, they push the button, people's time is wasted.
How can we redirect them so if they navigate via URL to a specific site, they are redirected to the extranet site we have configured for them?
Any ideas are helpful, thank you!
- Louis SimonettiIron Contributor
So, Bill Baer had shared this link out over Twitter https://docs.microsoft.com/en-us/azure/active-directory/active-directory-tenant-restrictions which mentions setting up a proxy to control access. Which to me means, depending on how much work and overhead you want, you enable some of this architecture, and then at the proxy you do some sort of regex query the "request access" page to URL redirect them to where ever.
- If I have to bet for one of the 2 solutions (Bart's one and Lousi's ones), I would bet for the JavaScript approach.
- Louis SimonettiIron Contributor
Yeah, mine is probably way overkill, but it would get the job done.
- bart_vermeerschSteel Contributor
In theory, you could set a default empty page on the root site collection open to everyone including external users. Via javascript check if it is an external account (using the O365 API) or not and do rerouting. I'm not sure if the performance hit will be acceptable.
This page cannot be modified in SPO so you're pretty much stuck with how it is.