ReportingService2010.ChangeSubscriptionOwner(String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更改订阅所有者。
public:
void ChangeSubscriptionOwner(System::String ^ SubscriptionID, System::String ^ NewOwner);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void ChangeSubscriptionOwner(string SubscriptionID, string NewOwner);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ChangeSubscriptionOwner", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.ChangeSubscriptionOwner : string * string -> unit
Public Sub ChangeSubscriptionOwner (SubscriptionID As String, NewOwner As String)
参数
- SubscriptionID
- String
订阅 ID。
- NewOwner
- String
用户ID,由授权扩展定义。
- 属性
注解
下表显示了该操作的头部和权限信息。
| SOAP头的使用 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 本地模式所需权限 | 用户必须是 BUILTIN\Administrators 组的成员 |
| SharePoint 模式 必要权限 | <xref:Microsoft.SharePoint.SPBasePermissions.ManageWeb> |
该方法将 Owner 被 SubscriptionID 识别的认购属性变为 的 newOwner值。 订阅随后将在新所有者的安全上下文中执行, User!UserID 报告中的字段将显示 的 newOwner值。
注意
恶意用户可能会利用这种方法试图获得额外的数据访问权。 为了帮助诊断此类事件,每当使用该方法时,操作细节都会被记录在追踪日志中。