SharePoint List视图 - 设置权限,以便只有某些用户才能访问某些视图

发布于 2025-02-06 18:55:09 字数 223 浏览 2 评论 0 原文

因此,我有一个包含所有数据的SharePoint列表(我们将其称为MasterList),并且它具有一个下拉列列,可以选择不同的部门(例如,销售,人力资源,会计等)。我创建了一个视图,该视图仅显示在此下拉列表中选择HR的数据。现在可以设置用户只能看到人力资源视图而不是主列表的权限。基本上,我只希望人力资源的人们看到人力资源视图,从会计到只能查看会计视图,然后管理员可以看到包括主列表在内的所有视图。这可能吗?有更好的方法吗?谢谢!

so I have a sharepoint list that contains all the data (We will call it MasterList), and it has an a dropdown column where different departments can be selected (example Sales, HR, Accounting etc etc). I created a view, which only shows data where HR is selected in this dropdown. Now is it possible to set permissions where a user can only see the HR view, and not the Master list. Basically I only want people from HR to see the HR view, and people from Accounting to only see the Accounting view, and then Admin can see all the views including the master list. Is this possible? Is there a better way to go about this? thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最美不过初阳 2025-02-13 18:55:09

我认为没有办法将用户限制为某个SharePoint列表视图。根据您的组织的大小,您 可以调查 Office 365用户 PowerApps中的连接器。这将使您可以按部门或职务过滤SharePoint。

示例:假设SharePoint列表的列命名 dept

of app of app:

// Set a variable for the user's department

Set(varUserDept, Office365Users.UserProfileV2(User().Email).department);

// Create a collection from the sharepoint list, filtered by department

ClearCollect(colData,
    Filter(SHAREPOINT_LIST,
        dept = varUserDept
    )
)

tay,如果说,如果SharePoint列表的URL “用户将能够访问数据。

I don't think there is a way to restrict PowerApps users to a certain Sharepoint List View. Depending on your org's size, you could investigate the Office 365 Users connector in PowerApps. This would allow you to filter the Sharepoint by Department or Job Title.

Example: Assumes the Sharepoint list has a column named dept

OnStart of the app:

// Set a variable for the user's department

Set(varUserDept, Office365Users.UserProfileV2(User().Email).department);

// Create a collection from the sharepoint list, filtered by department

ClearCollect(colData,
    Filter(SHAREPOINT_LIST,
        dept = varUserDept
    )
)

That being said, if the URL of the Sharepoint list "leaks" users will be able to access the data. See this forum post for strategies for addressing this issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文