[英]Column level permissions in sharepoint 2010 using Server Object Model
I am new to sharepoint.i have created a list with some columns from a console application using Server OM and c#.My requirement is when a perticular user logs in i want to hide some columns.like this i want to customize the columns that a perticular user can see. 我是sharepoint的新手,我使用Server OM和c#从控制台应用程序创建了一个包含一些列的列表。我的要求是,当特定用户登录时我想隐藏一些列。像这样,我想自定义一个垂直用户可以看到。 I have checked for permissions but there are no concept like "Column level permissions". 我已经检查了权限,但是没有像“列级权限”这样的概念。 I have tried with the "hidden" property of column.like 我已经尝试使用column.like的“隐藏”属性
SPField f = list.Fields["Abc"]
and f.Hidden = true
. SPField f = list.Fields["Abc"]
和f.Hidden = true
。
but doesnt work for me as i want to hide and show columns depending upon the current user. 但对我不起作用,因为我想根据当前用户隐藏和显示列。 can anybody help me tosolve this?thanks in advance. 有人可以帮助我解决这个问题吗?
Please try this feature: http://permissionmanagement.codeplex.com/ The solution allow you to create a column level permission. 请尝试以下功能: http : //permissionmanagement.codeplex.com/该解决方案允许您创建列级权限。 In your case, you assign permission to users defined in the column item. 您需要为列项目中定义的用户分配权限。 Also, you can try the other product like column permission 另外,您可以尝试其他产品,例如列权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.