B2B Integration

 View Only
  • 1.  Bulk User Mgmt

    Posted Wed April 17, 2019 10:49 AM
    Does anyone know of a programmatic way to bulk remove users from B2Bi? We have a large group of developers that we would like to remove all rights, and we don't want to click through 60 pages of users.
    #B2BIntegration
    #SupplyChain


  • 2.  RE: Bulk User Mgmt

    Posted Thu April 18, 2019 04:57 AM
    Dear Chad, if your B2B Integrator is 5.2.6.x or above you've access to the rest APIs (https://www.ibm.com/support/knowledgecenter/en/SS4TGX_2.2.0/com.ibm.help.sfg_reference.doc/B2B_APIs_avail.html) with which you can easily remove users by invoking User Account Services. Assuming your B2Bi is installed with IP 192.168.1.1 and REST APIs port is 13061 and the user you want to remove is named test_user you should invoke the http://192.168.1.1:13061/B2BAPIs/svc/useraccounts/test_user with method delete.

    Therefore, for bulk & command-line removal you could user cURL in the following way:

    curl -k --user "admin:password" -H "Content-Type: application/json" -H "Accept: application/json" --request DELETE "http://192.168.1.1:13061/B2BAPIs/svc/useraccounts/test_user
    Hope it helps

    ------------------------------
    Emiliano Pacelli
    ------------------------------