General IAUG Discussion Forum

 View Only

Session Manager USER Management Web Service (Documentation is lacking)

  • 1.  Session Manager USER Management Web Service (Documentation is lacking)

    Posted 07-23-2021 06:39 PM
    Edited by Tom Lynn 07-28-2021 04:51 PM
    I've been modeling a web service call in Postman using the User Management Web Service

    It's meant to delete a user.  I've gotten past these hurdles:
    • Documentation that states the required parameters should be in the query parameters and not in the body of the service call which should be empty (which is apparently incorrect).  When those directions are followed I receive a 403 response invalid request
    • learning that you can't use the same credentials of a currently logged in user.  Instead of complaining you're already logged in, the service call returns the html code for the SMGR login page with a 200 response making you at once hopeful that it worked and then disappointed with the response.
    • learning that devconnect has no forum to discuss this API
    • learning that devconnect will not support this API unless you have a paid devconnect account, despite the faulty programmer's guide.
    That said, I am now submitting a nearly good request to SMGR and receiving a 500 Internal server Error with a reasonCode of BI_1074 which indicates "XML not conforming to 'Complete' User Import schema definition(XSD) schema; cause - Bad Root Element deleteUsers
    "
    The XML that is not conforming comes directly from the SDK XML examples directory.  It's shown below.  I'm hoping someone who has this in production will share an example of their xml in 'entityXMLData'.  
    Here's the non working xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <tns:deleteUsers xmlns:tns="http://xml.avaya.com/schema/bulkdelete" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.avaya.com/schema/bulkdelete UserProfileSchemaDefinitionForBulkDelete.xsd ">
    <tns:deleteType>permanent</tns:deleteType>
       <tns:user>
          <tns:loginName>agrawals@avaya.com</tns:loginName>
       </tns:user>
    </tns:deleteUsers>

    Notice the space between /bulkdelete and UserProfileSchemaDefinitionForBulkDelete.xsd.  I can't tell if that's just a missing slash or if the space should be deleted.  I've tried it both ways and neither one works.
    I'm also troubled by the response saying Import Schema Definition, but that could be a generic message as the schemas called out are clearly bulkdelete.

    I'm happy to share the whole service call exported as CURL, for instance, too.
    Thank you!



    ------------------------------
    Tom Lynn
    Forum Moderator
    Principal Engineer
    Nordstrom, Inc.
    Seattle
    ------------------------------