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 2016 学习系列篇(11)-如何检验用户在系统中的权限Check Permissions

在这里顺便介绍一个平时经常用到的小功能,就是检查一个用户在网站当中的权限。当我们不知道一个用户拥有什么具体的权限,也不知道其在哪些权限组里面,这个时候就需要用到它了。 下面是这个权限的具体用法。 点击...

SharePoint 2010 使用自定义aspx页面替换列表默认的新建(NewForm.aspx),查看(DispForm.aspx)和编辑(EditForm.aspx)页面

转:http://www.cnblogs.com/sygwin/archive/2011/11/04/2236678.html 如何使用自定义的aspx页(比如Application Page)替换...
  • jackljf
  • jackljf
  • 2014年03月01日 11:02
  • 547

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

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

Sharepoint 2010 自定义WebService 找不到网站应用程序

错误描述:Net 开发WebService调用Microsoft.SharePoint.dll的服务器端对象模型,出现找不到网站的应用程序,或者出现500错误。 错误截图: [Webservice调...

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

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

SharePoint2010 自定义 Delegate 控件

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

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

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

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

SharePoint 2010为我们带来了很多新功能,这些新功能使得SharePoint更像是一个Office客户端应用程序,这无疑是令人振奋的。提到Office就不能不 提到Office 2007...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Sharepoint 2010 Permissions[自定义动作的权限设置]
举报原因:
原因补充:

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