Sophos UTM: Decommissioning of obsolete URL categorization services CFFS. Click here for important info.

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
  • 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.
Children