即使用户具有贡献权限,也要限制对viewlsts.aspx页的权限. [英] Restrict permission on viewlsts.aspx page even if users have contribute permission.
问题描述
您好,我有一个sharoint 2013网站.我想将所有具有贡献权限的用户的访问权限都限制为_layouts/15/viewlsts.aspx从web.config接受admin.我尝试使用拒绝用户= *,并允许用户= domain \ admin.但它被管理员阻止 还.我能做些什么?
Hi, I have a sharoint 2013 site. I want to restrict access to _layouts/15/viewlsts.aspx for all users with contribute permission accept admin from web.config. I have tried using deny users = * and allow users=domain\admin. but it gets blocked for admin also. What can i do?
我的代码
推荐答案
Shweta,
Hi Shweta,
这取决于首先确定哪个规则.因此,当管理员用户登录时-他也符合第一条规则,因此它会自行丢弃.
It depends on which rule get identified 1st. So when admin user logs in - he also fits in 1st rule so there it self it will thrown out.
因此,将allow标记放在拒绝标记之前. 请参考此论坛.
So put allow tag before deny tag. Refer this forum.
<location path="_layouts/15/viewlsts.aspx">
<system.web>
<authorization>
<allow roles="SPDC\Administrator" />
<deny users="*"/>
</authorization>
</system.web>
</location>
希望这会有所帮助.
这篇关于即使用户具有贡献权限,也要限制对viewlsts.aspx页的权限.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!