ReportingService2010.ChangeSubscriptionOwner(String, String) Metodo

Definizione

Cambia il proprietario di un abbonamento.

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)

Parametri

SubscriptionID
String

L'ID della sottoscrizione.

NewOwner
String

L'ID utente, come definito dall'estensione di autorizzazione.

Attributi

Commenti

La tabella sottostante mostra informazioni sull'intestazione e sui permessi di questa operazione.

Utilizzo dell'intestazione SOAP (Dentro) TrustedUserHeaderValue

(Fuori) ServerInfoHeaderValue
Permessi richiesti per la modalità nativa L'utente deve essere membro del gruppo BUILTIN\Administrators
Permessi richiesti in modalità SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.ManageWeb>

Questo metodo modifica la Owner proprietà della sottoscrizione identificata da SubscriptionID al valore di newOwner. La sottoscrizione verrà quindi eseguita nel contesto di sicurezza del nuovo proprietario, e il User!UserID campo nel report mostrerà il valore di newOwner.

Note

Questo metodo può essere utilizzato da un utente malintenzionato per cercare di ottenere ulteriori diritti di accesso ai dati. Per aiutare a diagnosticare tali incidenti, ogni volta che viene invocato questo metodo, i dettagli dell'operazione vengono registrati nel registro delle tracce.

Si applica a