Forum Discussion
john john
Dec 17, 2018Steel Contributor
Conditional Home Page redirection based on the login user department
We have a sharepoint classic team , and i created a new modern page "OurCompany.aspx" and i set it as the home page for our site. then i added modern pages for each department; HR.aspx , IT.aspx, Finance.aspx , and so on..
now can i set a conditional home page, based on the login user department ? so if a user is inside the IT department login to the sharepoint root site "https://ourcompnay.sharepoint.com" then instead of being redirected to the site home page "OurCompany.aspx" to be redirected to "IT.aspx"??
- Dean_GrossSilver Contributor
Not quite what you want, but this approach by Joanne Klein may be helpful https://joannecklein.com/2018/07/11/tagging-modern-pages-in-sharepoint-online/
and Audience Targeting is coming soon, see https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/Roadmap-Pitstop-November-2018/ba-p/293526
- Deleted
You can only set permissions for the sites.
For example, The IT user can enter only the IT site but will get an Unauthorized Access message when trying to access another site.
There no are redirections in Sharepoint.- john johnSteel Contributor
Deleted wrote:You can only set permissions for the sites.
For example, The IT user can enter only the IT site but will get an Unauthorized Access message when trying to access another site.
There no are redirections in Sharepoint.ok thanks for the reply. but can we achieve this using coding or development approaches ?
- DeletedI don't think so, as the websites in SharePoint are not designed like this, as far as I know.
You may however, just send the specific site link to a specific user instead of the homepage if it helps with the query.