ReportingService2010.ChangeSubscriptionOwner(String, String) メソッド

定義

サブスクリプションの所有者を変更します。

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 ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 ユーザーは、BUILTIN\Administrators グループのメンバーである必要があります。
SharePoint モードに必要なアクセス許可 <xref:Microsoft.SharePoint.SPBasePermissions.ManageWeb>

このメソッドで、SubscriptionID によって識別されるサブスクリプションの Owner プロパティが newOwner の値に変更されます。 サブスクリプションは新しい所有者のセキュリティ コンテキストで実行され、レポート内の User!UserID フィールドに newOwner の値が表示されます。

注意

このメソッドは、追加のデータ アクセス権限を取得しようとする悪意のあるユーザーによって使用される可能性があります。 そのような問題を診断できるように、このメソッドが呼び出されるたびに操作の詳細をトレース ログに記録することをお勧めします。

適用対象