Sharepoint:将用户从首页重定向到子网站

发布于 2024-10-03 12:30:25 字数 350 浏览 0 评论 0原文

我有一个 Sharepoint 2007 网站,它有一个首页和多个子网站。我们的用户组之一只能访问这些子网站之一,不能首页。然而,由于他们访问网站的方式,他们总是会登陆首页,目前首页显示的是默认的“访问被拒绝”页面。

在这些用户看到访问被拒绝的页面之前,是否有某种方法可以将他们重定向到他们的子网站?

欢迎所有解决方案,并且包括编程和功能/解决方案部署的解决方案都不是问题。该解决方案仅适用于单个用户组,因此对用户组和目标 URL 进行硬编码(即使很难看)是可接受的解决方案。

编辑:我听到一个自定义 accessdenied.aspx 页面作为建议,但这对于一个简单的功能来说似乎是一个相当麻烦的改变。

I have a Sharepoint 2007 site which has a frontpage and then various sub-sites. One of our usergroups only have access to one of these subsites and not the frontpage. However, due to the way they access the site, they will always land on the frontpage, which currently presents them with the default "access denied" page.

Is there some way to redirect these users to their subsite before they get presented with the access denied page?

All solutions are welcome, and solutions that include programming and feature/solution deployment is not an issue. The solutions is only for this single usergroup, so hardcoding (even if it is ugly) the user group and destination URL is an acceptable solution.

EDIT: I heard a custom accessdenied.aspx page as a suggestion, but it seems to be a rather cumbersome alteration for a simple feature.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最单纯的乌龟 2024-10-10 12:30:25

一种肮脏的解决方案是替换 Layouts 文件夹中的 AccessDenied.aspx 页面,并添加您自己的逻辑。您可以检查当前用户是否有“子站点”的权限,然后重定向他。

这不是推荐的解决方案,因为 SharePoint 的 Service Pack 可以替换 AccessDenied.aspx 文件。

One dirty solution is to replace AccessDenied.aspx page, in Layouts folder, and add your own logic. You can check the current user and see if he has permission to "Sub site" then redirect him.

This is not a recommended solution as Service Packs to SharePoint can replace AccessDenied.aspx file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文