Sharepoint 2010 Permissions[自定义动作的权限设置]

转载 2011年01月22日 13:03:00

http://www.wssdemo.com/Blog/archive/2010/01/15/SharePoint-2010-Permissions.aspx

 

There are several places where you can use the built in SharePoint permissions (apart from Code and Site Permission administration. I have blogged about the SPSecurityTrimmedControl and ddwrt:IfHasRights uses in 2007 but there is the new ribbon custom commands in 2010 that also make use of the SharePoint permissions. So here is an overview of how you can use these permissions in the following scenarios followed by a complete list of the permission values.

Ribbon Custom Actions

You can add these to any list or library using SharePoint Designer from the List summary page

The properties of the action allow you to specify the Rights Mask to control visibility of the action.

SPSecurityTrimmedControl Class

Conditionally renders the contents of the control to the current user only if the current user has permissions defined in the PermissionString. You can use this in your master, page layouts or web part pages.

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="" ></SharePoint:SPSecurityTrimmedControl>

Ddwrt xsl namespace

You can use this in the Data View web part or any other web part that is derived from this (e.g. search or content query).

<xsl:if test="ddwrt:IfHasRights(permissionMask)">
something...
</xsl:if>

SharePoint designer also makes this function available in the xpath expression builder dialog.

List of permissions and mask values:

List/document perms

Mask

ViewListItems

1

AddListItems

2

EditListItems

4

DeleteListItems

8

ApproveItems

16

OpenItems

32

ViewVersions

64

DeleteVersions

128

CancelCheckout

256

ManagePersonalViews

512

ManageLists

2,048

ViewFormPages

4,096

Web level perms

Open

65,536

ViewPages

131,072

AddAndCustomizePages

262,144

ApplyThemeAndBorder

524,288

ApplyStyleSheets

1,048,576

ViewUsageData

2,097,152

CreateSSCSite

4,194,314

ManageSubwebs

8,388,608

CreateGroups

16,777,216

ManagePermissions

33,554,432

BrowseDirectories

67,108,864

BrowseUserInfo

134,217,728

AddDelPrivateWebParts

268,435,456

UpdatePersonalWebParts

536,870,912

ManageWeb

1,073,741,824

UseRemoteAPIs

137,438,953,472

ManageAlerts

274,877,906,944

CreateAlerts

549,755,813,888

EditMyUserInfo

1,099,511,627,776

special perms

EnumeratePermissions

4,611,686,018,427,380,000

相关文章推荐

SharePoint 2010 自定义字段"大写金额"开发

SharePoint 2010自带字段类型有很多,如单行文本,日期时间,下拉列表,数字等等。但往往这些不能满足我们的需要,比如要求一个大写金额的字段,用户输入数字,要求显示成大写,这时候就不能满足需求...

SharePoint2010 自定义 Delegate 控件

启动 Microsoft Visual Studio 2010 中的 SharePoint 开发工具。在“文件”菜单上,指向“新建”,然后单击“项目”。在“项目类型”中的“Visual Basic”或...

SharePoint 2010 自定义Timer job 问题总结(拒绝访问,Execute方法不执行,不及时更新)

http://blog.csdn.net/lance_lot1/article/details/7963620 在上面的链接中,我写了关于如何自定义一个简单的Timer job。这个是在我自己电脑里...

SharePoint 2010 自定义计时器(Timer Job)

1.使用Vs2010创建一个空SharePoint 项目(我的名字:SharePointCusTimer),然后右击项目名添加一个类(我的名字:MyTimerJob.cs),打开该类修改代码如下: ...

[SharePoint2010]在Ribbon中添加自定义按钮

SharePoint 2010为我们带来了很多新功能,这些新功能使得SharePoint更像是一个Office客户端应用程序,这无疑是令人振奋的。提到Office就不能不 提到Office 2007...

SharePoint 2010 品牌化和自定义--母版页

SharePoint 2010 母版页在SharePoint站点承担重要的角色。是整个网站结构的主心骨。根据你的设计和方法,你可能只需要使用OOTB母版页,而不需要任何自定义。对母版页你最常做的修改是...

为SharePoint 2010 Workflow 开发 Custom(自定义的) Workflow Activity

为SharePoint 2010 Workflow 开发 Custom Workflow Activity(Develop Custom Workflow Activity for SharePoin...

SharePoint 2010 自定义状态机工作流(StateMachine Workflow) + InfoPath 实例part2 (InfoPath设计部分及演示效果)

SharePoint 2010 自定义状态机工作流(StateMachine Workflow) + InfoPath 实例part2 (InfoPath设计部分及演示效果) 1.      启动 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)