使用Powershll 取出List中Item的权限
2015-01-26 10:16
288 查看
#Write-Host "Loading SharePoint Powershell Snapin..." #Add-PSSnapin "Microsoft.SharePoint.Powershell" $spWeb = Get-SPWeb -Identity http://xxxxxxxx $spList = $spWeb.GetList("xxxxxx") #取第一条数据 $spListItemCollection = $spList.GetItemById(1) Write-Host $spListItemCollection.Count $spListItemCollection[1].RoleAssignments #遍历查询的Item foreach ($item in $spListItemCollection) { #遍历所有的Role foreach($roleAssignment in $item.RoleAssignments) { #遍历Role中绑定的权限 foreach($definition in $role.RoleDefinitionBindings) { #取出权限是读的Role if($definition.Name -eq "Read") { Write-Host $roleAssignment.Member ": " $definition.Name } } } }
相关文章推荐
- 使用 AddRange 方法将多个 ListItem 对象添加到集合
- 使用SharePoint Web Serivce(1)--Add a NEW item to a list.
- sharepoint 2010 重置List Item访问权限
- SharePoint【ECMAScript对象模型系列】-- 06. 使用ECMA操作列表项对象(list item)
- listView中多个listItem布局时,convertView缓存及使用
- 使用for。做下拉菜单并控制当前显示的日期,使用controls和listitem的add集合
- SharePoint 2013 中使用 JavaScript Like 和Unlike list item/page/document
- Sharepoint学习笔记—ECMAScript对象模型系列-- 6、使用ECMA操作列表项对象(list item)
- listView中多个listItem布局时,convertView缓存及使用
- android listview综合使用示例_结合数据库操作和listitem单击长按等事件处理
- 使用SharePoint Web Serivce(2)--Update Delete a item in a list
- CAknSettingItemList使用心得(转)
- [Symbian] CAknSettingItemList使用心得(转)
- listView中多个listItem布局时 convertView缓存及使用(转)
- listView中多个listItem布局时,convertView缓存及使用
- Symbian CAknSettingItemList使用心得
- CAknSettingItemList中使用CAknEnumeratedTextPopupSettingItem使用心得
- Android中的使用ListView控件显示List集合中的数据,并对Item响应选择事件(方法一)
- Sharepoint ECMAScript对象模型系列 使用ECMA操作列表项对象(listitem)
- 使用listview/expanablelistview listitem中的button控件获取item的索引