简体   繁体   English

仅当用户可以在SSRS报告中看到文件时,才允许用户在Windows文件系统中打开文件

[英]Allow user to open file in Windows file system only if they can see the file in an SSRS report

We have a repository with two parts: 我们有一个包含两部分的存储库:

File System: holds documents (PDFs) in folders divided by date added.
 SQL Server: holds metadata and the path of each document. (User permissions
             would be based on the metadata held here).

The file system is presently locked down so nobody has access. 文件系统目前被锁定,因此没有人可以访问。 We are hoping to grant users access to files via a SSRS report. 我们希望允许用户通过SSRS报告访问文件。 The report would query the database and return a list of only the documents that the user should have access to. 该报告将查询数据库,并仅返回用户应有权访问的文档的列表。

How would we grant permissions to the user only for the files retreived by the report? 我们如何仅对报告检索的文件授予用户权限?

Thank you! 谢谢!

I think SSRS in this is a red herring. 我认为SSRS在这是一条红鲱鱼。 It sounds like what you really want is how to secure the file system based on the results of a SQL query. 听起来您真正想要的是如何基于SQL查询的结果保护文件系统。 (SSRS doesn't really have any functionality that will help with this.) (SSRS实际上没有任何功能可以帮助您解决此问题。)

Implementing this through a custom web interface is certainly possible and sounds like a good answer if the using a browser for file access is acceptable. 通过自定义Web界面实施此操作当然是可能的,并且如果使用浏览器进行文件访问是可以接受的,那么这听起来是一个不错的选择。 Give the service account permissions to access all the files and then return only the files appropriate for the connecting user. 授予服务帐户访问所有文件的权限,然后仅返回适合于连接用户的文件。 ( Sounds like a straight forward development project. If the requirements are simple enough, then this could be completed in a few days. Of course, make sure you use secure coding practices, since security matters in this application. ) (听起来像是一个简单的开发项目。如果要求足够简单,那么几天后就可以完成。当然,请确保您使用安全的编码做法,因为此应用程序中的安全性很重要。)

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

相关问题 为什么我只能在Windows上使用Tie :: File打开2045个文件? - Why can I only open 2045 files with Tie::File on Windows? 在 C++ 中创建一个只有用户可以看到和编辑的权限的文件 - Making a file in C++ with permissions that only the user can see the file and edit it Windows 2003 Server限制文件访问权限以仅允许一个用户 - Windows 2003 server restrict file access permission to allow only one user 无法打开报告文件 (iexpress) - Unable to open the Report file (iexpress) Python无法在C:\\ Windows \\ System32 \\ oobe \\ Info \\ backgrounds中打开文件 - Python can't open a file in C:\Windows\System32\oobe\Info\backgrounds 无法在Windows中的ipython中打开文件 - Can't open file in ipython in windows 如何在 Windows 上运行 Windows Docker 容器而没有“打开 \\.\pipe\docker_engine_windows:系统找不到指定的文件”? - How can I run a Windows Docker container on Windows without "open \\.\pipe\docker_engine_windows: The system cannot find the file specified"? 拦截windows打开文件 - Intercept windows open file Windows操作系统无法打开在Linux上可用的文件名 - Windows operating system unable to open file names that works on linux Windows:无法删除myDB.mdf,因为该文件已在系统中打开 - Windows: Cannot delete myDB.mdf because the file is open in System
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM