3.3.4.35 DeleteUserAccessPolicy

The DeleteUserAccessPolicy operation is used to delete the access policy from IPAM data store.

 <wsdl:operation name="DeleteUserAccessPolicy">
   <wsdl:input wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/DeleteUserAccessPolicy" message="ipam:IIpamServer_DeleteUserAccessPolicy_InputMessage" />
   <wsdl:output wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/DeleteUserAccessPolicyResponse" message="ipam:IIpamServer_DeleteUserAccessPolicy_OutputMessage" />
 </wsdl:operation>

The protocol client sends an IIpamServer_DeleteUserAccessPolicy_InputMessage request. The server then performs the following processing steps. When the operation completes successfully, the protocol server MUST respond with the IIpamServer_DeleteUserAccessPolicy_OutputMessage response. In the event of a failure, an appropriate SOAP fault MUST be sent to the client as specified in section 2.2.2.1:

  1. The method GetPolicyById from ADM_UserAccessPolicyTable is called using DeleteUserAccessPolicy.policyId. The method returns the UserAccessPolicy associated with it. Assume it is stored in tempVar.userAccessPolicy.

  2. If the tempVar.userAccessPolicy object is NULL, a SOAP fault MUST be thrown as specified in section 2.2.2.1.

  3. The rows associated with tempVar.userAccessPolicy.PolicyId are deleted from ADM_UserAccessPolicyTable.

  4. The rows associated with tempVar.userAccessPolicy.UserGroupId are deleted from ADM_PolicyMapTable.

  5. The total number of rows deleted as a result of this operation is returned in the output message.