简体   繁体   English

创建自定义页面以使用Sharepoint 2010中的C#向用户授予工作区权限

[英]Create custom page to give permissions to a user for workspace using C# in Sharepoint 2010

We use Sharepoint 2010 as a intranet solution in our company.We have 1 web application and more than 5 site collections.Each site collection has different sites and each site has Workspace Site template. 我们将Sharepoint 2010用作我们公司的Intranet解决方案。我们拥有1个Web应用程序和5个以上的网站集。每个网站集都有不同的网站,每个网站都有Workspace网站模板。

I want to create a custom web page which contains each Workspace name as a column and Read/Write permission levels as a row in a datagrid. 我想创建一个自定义网页,其中包含每个工作区名称作为一列,而读取/写入权限级别作为数据网格中的一行。 So the admin can easily give permissions to a user for each of the workspace. 因此,管理员可以轻松地为每个工作区授予用户权限。 I mean the datagrid as follows; 我的意思是数据网格如下:

               Workspace1     Workspace2     WOrkspace3

Read

Write

FullControl 完全控制

I just want to learn that is my scenario possible?If it possible,where should I start from? 我只是想知道我的情况是否可能?如果可能,我应该从哪里开始?

I don't think you will find a ready made solution for this. 我认为您不会为此找到现成的解决方案。 Access Checker Webpart for MOSS 2007 is a similar webpart which shows access details for a particular site collection (and subsites, lists etc). MOSS 2007的Access Checker Webpart是一个类似的Webpart,它显示特定网站集(以及子网站,列表等)的访问详细信息。 I would suggest downloading the code and modify it to suit your needs. 我建议下载代码并对其进行修改以适合您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM