【问题标题】:Exception in SharePoint 2010 when updating UserProfile using a web service使用 Web 服务更新 UserProfile 时 SharePoint 2010 中的异常
【发布时间】:2010-08-26 12:34:14
【问题描述】:

我正在使用下面的代码更新 UserProfile


使用系统; 使用 System.Collections.Generic; 使用 System.Text; 命名空间 UserProfileWebServiceApp { 课堂节目 { 公共静态 localhost.UserProfileService myService = 新的 localhost.UserProfileService(); UserProfileWebService.localhost.PropertyData[] newdata = 新的 UserProfileWebService.localhost.PropertyData[1]; 新数据[0] = 新的 UserProfileWebService.localhost.PropertyData(); newdata[0].Name = "HomePhone"; 新数据[0].Values = 新值数据[1]; 新数据[0].Values[0] = 新 ValueData(); 新数据[0].Values[0].Value = "aa"; 新数据[0].IsValueChanged = true; myService.ModifyUserPropertyByAccountName("域名\\用户名", 新数据); } } 发生肥皂异常-> 试图执行未经授权的操作。 任何人都可以帮助我 谢谢

【问题讨论】:

    标签: sharepoint sharepoint-2010 user-profile


    【解决方案1】:

    运行此应用程序的帐户(如果您在计算机上开发,可能是您的帐户)需要具有正确的权限才能在 User Profile Service 应用程序中管理用户配置文件。我认为您还可以在对具有管理用户配置文件权限的帐户/密码的服务调用中指定凭据。

    【讨论】:

      猜你喜欢
      • 2012-02-22
      • 2012-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-30
      • 2023-03-30
      相关资源
      最近更新 更多