Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

user removal via api not working

I am writing following script to delete user. Script is returning status code 200 but user not getting deleted.

{'reqxml': '<Request><Login><Username>XXXXXX</Username><Password>XXXXXX</Password></Login><Remove><User transactionid="1"><Username>YYYY</Username><Name>YYYY</Name></User></Remove></Request>'}

response:

Login status: Authentication Successful
Line 1 (YYYY), Status 200
User deleted successfully

Can anybody Help in this regard



This thread was automatically locked due to age.
Parents Reply Children
  • Thanks vishal

    Perfect solution. It worked. If possible please update API documentation

    Providing my final script for further reference

    ipaddress:port/.../APIController

    reqxml=<Request><Login><Username>XXXX</Username><Password>YYYY</Password></Login><Remove><User transactionid="1"><Name>ABC</Name></User></Remove></Request>

    Output:

    <Response APIVersion">1905.1" IPS_CAT_VER">1">
    <Login>
    <status>Authentication Successful</status>
    </Login>
    <User transactionid">1">
    <Status code">200">Configuration applied successfully.</Status>
    </User>
    </Response>
    Its deleting the user. Here user name is specified inside tag <Name></Name>. ABC is user name in the query.
    Thanks a lot.
  • Hi   Thanks for the update, for API documentation update let me check internally. 

    Regards,

    Vishal Ranpariya
    Technical Account Manager | Sophos Technical Support

    Sophos Support Videos | Knowledge Base  |  @SophosSupport | Sign up for SMS Alerts |
    If a post solves your question use the 'Verify Answer' link.