Webservice example to Disassociate a user who is part of Multiple Accounts

Webservice example to Disassociate a user who is part of Multiple Accounts

Symptoms: Webservice example of how to disassociate a User who is part of multiple Accounts

 

Diagnosis: How to programmatically disassociate a User from an Account

 

Solution: Use the UserAcctHierarchyService?wsdl

  1.  Import the UserAcctHierarchyService?wsdl to ie. SmartBear SoapUI or Postman
    • Depending on your tenant, here would be an example of the endpoint: https://tenant.flexnetoperations.com/flexnet/services/v3/UserAcctHierarchyService?wsdl
    • Recommend using the latest version of the wsdl that is available
      • To see what versions are available use the base url endpoint: https://tenant.flexnetoperations.com/flexnet/services
  2. Execute the updateUser method

Sample Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:v3.webservices.operations.flexnet.com">
<soapenv:Header/>
<soapenv:Body>
<urn:updateUserRequest>
<!--1 or more repetitions:-->
<urn:userData>
<urn:user>

<urn:primaryKeys>
<urn:firstName>FirstName</urn:firstName>
<urn:lastName>LastName</urn:lastName>
<urn:emailAddress>EmailAddress</urn:emailAddress>
</urn:primaryKeys>

</urn:user>

<urn:primaryKeys>
<urn:id>Account</urn:id>
</urn:primaryKeys>
</urn:account>

</urn:acctRoles>
<urn:opType>DELETE</urn:opType>
</urn:acctRolesList>

</urn:userData>
</urn:updateUserRequest>
</soapenv:Body>
</soapenv:Envelope>

 

Sample Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<updateUserResponse xmlns="urn:v3.webservices.operations.flexnet.com">
<statusInfo>
<status>SUCCESS</status>
</statusInfo>
</updateUserResponse>
</soapenv:Body>
</soapenv:Envelope>

 

 

 

Labels (3)
Was this article helpful? Yes No
No ratings
Version history
Revision #:
2 of 2
Last update:
‎Dec 23, 2020 12:21 PM
Updated by:
Revenera
 
Contributors