ReportingService2010.ChangeSubscriptionOwner(String, String) ReportingService2010.ChangeSubscriptionOwner(String, String) ReportingService2010.ChangeSubscriptionOwner(String, String) Method

定义

更改订阅的所有者。 Changes the owner of a subscription.

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);
Public Sub ChangeSubscriptionOwner (SubscriptionID As String, NewOwner As String)
参数
SubscriptionID
String String String

订阅的 ID。 The subscription ID.

NewOwner
String String String

授权扩展插件定义的用户 ID。 The user ID, as defined by the authorization extension.

注解

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头使用情况SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions 用户必须是 BUILTIN\Administrators 组的成员The user must be a member of the BUILTIN\Administrators group
SharePoint 模式所需的权限SharePoint Mode Required Permissions ManageWeb

此方法可更改Owner由标识的订阅的属性SubscriptionID为的值newOwnerThis method changes the Owner property of the subscription identified by SubscriptionID to the value of newOwner. 然后,订阅将执行的新所有者的安全上下文中与User!UserID在报表中的字段将显示的值newOwnerThe subscription will then execute in the security context of the new owner, and the User!UserID field in the report will display the value of newOwner.

备注

恶意用户可以使用此方法来试图获得额外的数据访问权限。This method can be used by a malicious user to try to gain additional data access rights. 为了帮助诊断这种变化,每次调用此方法时,,请在跟踪日志中记录操作的详细信息。To help diagnose such incidences, whenever this method is invoked, the details of the operation are recorded in the trace log.

适用于