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:
Here is the content of /log/apiparser.log
INFO Sep 06 09:24:36Z : Start Remove Handler,Component : User
ERROR Sep 06 09:24:36Z : Key:ISCrEntity is not found in RequestMap File for User.
INFO Sep 06 09:24:36Z : Mapping file for User component is /_conf/csc/IOMappingFiles//1900.1/identity/users.xml
WARNING Sep 06 09:24:36Z : Mapping element Mode is not needed now.
ERROR Sep 06 09:24:36Z : Flag setting for this opcode is 16.
INFO Sep 06 09:24:37Z : Opcode response: status:500
INFO Sep 06 09:24:37Z : End Remove Handler, Status : Success, Component : User, Transaction :
INFO Sep 06 09:24:37Z : 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 : 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?
This thread was automatically locked due to age.