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

Hello,

I'm creating script for removal of inactive users from XG firewalls. I'm able to remove OTP tokens of the user, but can't remove user itself. It always returns error code 500 (Operation could not be performed on Entity.)

The strange thing is that it returns the same code even if I entered non-existing username instead of saying "Object doesn't exist". It looks like the request itself is wrong.

I can remove the account via GUI without any issues.

I'm using the following request:

<Request><Login><Username>admin</Username><Password>xxxxxxx</Password></Login><Remove><User transactionid=""><Username>test</Username></User></Remove></Request>

Here is the content of /log/apiparser.log

INFO Sep 06 09:24:36Z [32308]: Start Remove Handler,Component : User
ERROR Sep 06 09:24:36Z [32308]: Key:ISCrEntity is not found in RequestMap File for User.
INFO Sep 06 09:24:36Z [32308]: Mapping file for User component is /_conf/csc/IOMappingFiles//1900.1/identity/users.xml
WARNING Sep 06 09:24:36Z [32308]: Mapping element Mode is not needed now.
ERROR Sep 06 09:24:36Z [32308]: Flag setting for this opcode is 16.
INFO Sep 06 09:24:37Z [32308]: Opcode response: status:500
INFO Sep 06 09:24:37Z [32308]: End Remove Handler, Status : Success, Component : User, Transaction :

INFO Sep 06 09:24:37Z [32308]: Command:/scripts/apiparser_generate_tar.sh /sdisk/api-1662456275924800.txt /sdisk/API-1662456275924800/sdisk/APIXMLOutput/1662456275766.xml /sdisk/API-1662456275924800.tar /sdisk/API-1662456275924800.log 0 status:3
INFO Sep 06 09:24:37Z [32308]: No need to create Tar file. Response file is /sdisk/APIXMLOutput/1662456275766.xml

Has anybody here experience with user removal via API who could help me?

Thanks,

Ondrej



This thread was automatically locked due to age.
Parents
  • Delete User
    Request URL. {api-domain}/crm/{version}/users/{user_id}
    Header. Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52.
    Scope. scope=ZohoCRM.users.{operation_type}
    Possible operation types. ALL - Full access to users. DELETE - Delete user data.

    This May Help,
    Peter

Reply
  • Delete User
    Request URL. {api-domain}/crm/{version}/users/{user_id}
    Header. Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52.
    Scope. scope=ZohoCRM.users.{operation_type}
    Possible operation types. ALL - Full access to users. DELETE - Delete user data.

    This May Help,
    Peter

Children
No Data