简体   繁体   English

Sharepoint Provider托管用户权限

[英]Sharepoint Provider Hosted User Permissions

I'm building a business app where read and write access permissions are important. 我正在构建一个业务应用程序,其中读写访问权限很重要。 The project is a Provider hosted MVC 5 / SharePoint app built in Visual Studio 2012. 该项目是在Visual Studio 2012中构建的提供商托管的MVC 5 / SharePoint应用程序。

Johnny needs to be able to Read and Write content on SharePoint App A AND SharePoint App B Johnny需要能够在SharePoint App ASharePoint App BReadWrite内容

Dave needs to only be able to Read content on SharePoint App A Dave只需要能够Read SharePoint App A内容

I've looked over a lot of documentation including this tutorial: http://www.itunity.com/article/sharepoint-permissions-manage-access-sql-data-709 我查看了很多文档,包括本教程: http//www.itunity.com/article/sharepoint-permissions-manage-access-sql-data-709

The problem is if I give Dave Read access at the site level he is allowed to access SharePoint App A but also SharePoint App B . 问题是如果我在站点级别提供Dave Read访问权限,则允许他访问SharePoint App A以及SharePoint App B

How do I effectively use SharePoint permissions to stop this unintended behaviour? 如何有效地使用SharePoint权限来阻止这种意外行为?

Should I even be using SharePoint permissions? 我应该使用SharePoint权限吗?

2nd example: 第二个例子:

I am building an app for project management, there will be an Engineer who is able to create, read and edit projects, there is also an Accountant who views the projects billables. 我正在为项目管理构建一个应用程序,将有一个能够创建,阅读和编​​辑项目的工程师,还有一个会计师可以查看项目管理。

If I give Read permissions to Engineer and Read permissions to Accountant, how do I know which can view the project details and which can view the project's billables? 如果我向工程师授予读取权限并向会计授予读取权限,我如何知道哪些可以查看项目详细信息以及哪些可以查看项目的可计费用?

I read the article you linked to, and I am not sure that this is "authorization", the right word is "authentication", in sharepoint you set what a user can do, authorization means- which data user can read or write 我读了你链接的文章,我不确定这是“授权”,正确的词是“身份验证”,在sharepoint中你设置用户可以做什么,授权意味着 - 哪个数据用户可以读或写

so a simple solution for you is creating Group in sharepoint, for any authorization type you have, for example, a group called "Engineer", and gives it the permissions you need, your engineers will be members in this group. 因此,一个简单的解决方案是在sharepoint中创建Group ,对于您拥有的任何授权类型,例如,名为“Engineer”的组,并为其提供所需的权限,您的工程师将成为该组中的成员。

in your MVC attribute, accept the group as parameter and check if user is member in this group, show the user the relevant data according to its group 在您的MVC属性中,接受组作为参数并检查用户是否是该组中的成员,根据其组向用户显示相关数据

   public SharePointPermissionsAuthorizationAttribute( params string group) { _groups = groups; } 




[SharePointEffectivePermissionsFilter("Engineer"]
 public ActionResult Index() { ... } } 

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

相关问题 从 Sharepoint 提供程序托管的应用程序中检索 SharePoint 2013 列表数据 - Retrieving SharePoint 2013 List Data from Sharepoint provider hosted app 从提供商托管的应用程序访问Sharepoint文档库项目 - access Sharepoint document library items from provider-hosted app Sharepoint Provider托管的应用程序:无效的JWT令牌。 令牌已过期 - Sharepoint Provider Hosted App: Invalid JWT Token. The token is expired 将Sharepoint App 2013部署到Windows Azure(托管提供程序) - Deploying Sharepoint App 2013 to Windows Azure (Provider Hosted) 链接到服务器端部分的SharePoint Provider托管应用程序 - SharePoint Provider Hosted App linking to server side part 在将用户添加到共享点组中时,Sharepoint 2010不会获得任何权限 - Sharepoint 2010 when adding user to a sharepoint group, no permissions are taken 将权限从一个用户复制到另一用户-SharePoint - Copy permissions from one user to another user - SharePoint 从C#托管Powershell,权限问题,模拟为域用户 - Hosted Powershell from C#, permissions questions, impersonated as domain user 我将在哪里将Page_Load的代码放在MVC SharePoint 2013提供程序托管的应用程序中? - Where would I put the code for Page_Load in an MVC SharePoint 2013 provider hosted app? 以编程方式获取特定用户的所有SharePoint文件夹权限 - Get all SharePoint folder permissions of a particular user programatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM