ReportingService2010.InheritModelItemParentSecurity(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes the policies associated with an item in the model hierarchy and causes the item to inherit the policies from its parent.
public:
void InheritModelItemParentSecurity(System::String ^ Model, System::String ^ ModelItemID);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritModelItemParentSecurity", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public void InheritModelItemParentSecurity (string Model, string ModelItemID);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/InheritModelItemParentSecurity", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.InheritModelItemParentSecurity : string * string -> unit
Public Sub InheritModelItemParentSecurity (Model As String, ModelItemID As String)
Parameters
- Model
- String
The fully qualified URL of the model including the file name and .smdl file name extension.
- ModelItemID
- String
The ID of the item in the model.
- Attributes
Remarks
The table below shows header and permissions information on this operation.
SOAP Header Usage | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
Native Mode Required Permissions | UpdateModelItemAuthorizationPolicies |
SharePoint Mode Required Permissions | <xref:Microsoft.SharePoint.SPBasePermissions.ManagePermissions> |
Policies that are deleted from an item are also deleted from child items that inherit those policies.
A ModelItemID
value is required. Policies cannot be deleted from the model root. Attempting to delete policies that are associated with the model root causes a SOAP exception with the error code rsCannotDeleteRootPolicy
.