除配置文件外,Sharepoint 中存储用户设置的位置
用户配置文件是否适合存储用户选择的自定义网格中每页的项目数等信息? (我可以将其存储在视图中,但不会以这种方式存储在每个用户中)。
我的第一个想法是将这些设置存储在用户配置文件中,但是以编程方式创建用户配置文件属性的访问权限存在问题,归根结底,您要么必须在 SSP 中授予每个用户“管理员用户配置文件”权限,要么您 必须在域用户下运行应用程序池,而不是网络服务。 这两种情况对我来说都是不现实的,所以我现在正在寻找另一种方法来存储此类“每用户”设置。
谢谢!
编辑:我现在正在考虑使用额外的数据库来存储用户属性的 ASP.NET 配置文件机制。
Is user profiles an appropriate place to store things like number of items per page in a custom grid user selected? (I you can store it in the view, but it won't be per user this way).
My first though was to store these settings in user profiles, but there are problems with access permissions for programmatically creating user profile properties boiling down to you either have to give every user 'Manager User Profiles' permission in SSP or you have to run the application pool under a domain user, not NETWORK SERVICE. Both scenarios are unrealistic for me, so I'm now looking for another way to store such 'per user' settings.
Thanks!
Edit: I'm now considering ASP.NET profile mechanism with an additional DB to store user properties.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
鉴于信息不敏感,存储针对 AD 登录的值的简单数据库就足够了。
由于您已经拥有 ASP.Net 用户数据库,因此存储信息将是最好的选择。
Given that the information is not sensitive a simple database with values stored against AD login should suffice.
And as you have the ASP.Net user database already, storing the information there would be the best option.
也许是一个全局列表,只能由 SHAREPOINT\SYSTEM 用户访问,然后您可以在 SPSecurity.RunWithElevatedPrivileges 函数中进行查询。
缺点:您需要自定义代码来读取/写入该列表。
Maybe a Global List, that is only accessible for the SHAREPOINT\SYSTEM User and that you can then Query in a SPSecurity.RunWithElevatedPrivileges Function.
Disadvantage: You require Custom code to read/write to that list.
曲奇饼?
当然它们有局限性,但是创建控件来运行 javascript 来添加/编辑值是相当容易的
Cookie?
Sure they have limitations, but it is fairly easy to create the control to run javascript to add/edit the value