0

我有网站集 (http://myapp/sites/sitcol),我在该网站集中有两个站点,即根站点 (http://myapp/sites/sitcol/) 和 site2 (http://myapp/sites/情景/现场2)。我有两个安全组,我想设置安全性,以便 group1 在站点上具有贡献者权限,而 group2 对站点 2 具有贡献者权限。重要提示:当 group1 中的用户访问“http://myapp/sites/sitcol”url 时,它应该转到 site1,当 group2 中的用户访问“http://myapp/sites/sitcol”url 时,它应该转到 site2。

我怎样才能做到这一点?

4

1 回答 1

0

You will need a redirect web part. When the user hits the top level site(site 1) check what groups they are in. Simple if statement and then response.redirect to the appropriate site if they have contribute access to site two and NOT to site one.

However this has implications.

1) they will never be able to see site 1 as a whole as the redirect will always take them to site two.THis is easily negated by adding the user to the Site 1 contributor group. 2)(I think, you will need to test) you will need to at least grant everyone visitor rights to site 1 but if someone sends a link of a list on site 1 they will still be able to see the list but won't be able to do anything but read.

I hope this helps

于 2012-09-21T08:54:07.737 回答