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 Children
  • Hi   In order to delete the user via API, still username must be specified between tags <Name></Name> which is mandatory. Please ensure you have set that filed as per requirement else it will not delete the user.

    If the filed is proper then please post sample API query getting used by you to delete the user, so I can review the same.

    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 'This helped me' link.

  • 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 'This helped me' link.