have a sharepoint page with multiple tiles on it. Some of the tiles are access restricted to some users. If restricted user looks at the page they see an "access denied" or an "Error" message on page instead of tiles. Is there a way to remove this message and make them see a bank space instead of these "access denied" messages?
另外,是否可以通过任何方式访问限制图块,以便受限用户看到空白屏幕而不是图块或任何错误消息?
Alternatively is there any way i can access restrict tiles so restricted user sees a blank screen instead of tiles or any error message?
提前致谢.
推荐答案
巴拉斯,
据我了解,您希望在SharePoint页面中显示图块.不同的图块具有不同的权限,因此,只有被允许查看的用户才能看到那些特定的图块,其他用户则将其隐藏而不显示拒绝访问.
As per my understanding, you want to display the Tiles in a SharePoint page. Different tiles have different permissions and hence only users who are allowed to view should see those particular tiles else hide it instead of showing access denied.
默认情况下,隐藏页面加载时的所有图块.获取当前用户信息并检查与该用户有关的权限&瓷砖.仅显示当前用户可以看到的图块,否则将其隐藏.您可以使用JSOM& REST API SharePoint.
By default hide all tiles on page load. Get the current user information and check the permissions with respect to the user & tiles. Display only the tiles which the current user can see otherwise hide it. You can achieve this using JSOM & REST APIin SharePoint.
更多推荐
共享点图块访问受限,但应该不可见,而不是显示访问受限错误的列表.
发布评论