简体   繁体   中英

SharePoint 2010: Site security

I have Site collection (http://myapp/sites/sitcol) and i have two site in that site collections ie root site (http://myapp/sites/sitcol/) and site2 (http://myapp/sites/sitcol/site2). i have two security groups, i want to set security so that group1 has contributor rights on both site and group2 has contributor rights to only site2. IMPORTANT: when user in group1 access "http://myapp/sites/sitcol" url it should to go to site1 and when user from group2 access "http://myapp/sites/sitcol" url it should go to site2.

how can i achieve this?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM