Skip to main content

I was testing SOAR response module of AWS IAM with  one of the aws account. Created a user in aws account and integrated AWS IAM module of SecOps with that. Integration was successful without any error. But while executing actions I am getting error - such as "error executing action List Users. Reason: User.__init__() got an unexpected keyword argument 'Path'" or "Error executing action Attach a Policy. Reason: Policy.__init__() got an unexpected keyword argument 'PolicyName'. What could be the reason.  While checking debugging message I could see that module is able to connect successfully with the AWS. 

Here is the Debug output 

================= Main - Param Init =================
Reading configuration from Server
Reading configuration from Server
Reading configuration from Server
Verify SSL: True
Max Users to Return: 50
----------------- Main - Started -----------------
Connecting to AWS IAM Server..
Successfully connected to the AWS IAM server with the provided credentials!
Listing AWS IAM account users..
Error executing action List Users. Reason: User.__init__() got an unexpected keyword argument 'Path'
User.__init__() got an unexpected keyword argument 'Path'
Traceback (most recent call last):
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/#/AWSIAM_V6.0/gbayu2nu.yph/iemuajul.ujc.py", line 82, in main
users = manager.list_users(max_users_to_return=max_users_to_return)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/#/AWSIAM_V6.0/gbayu2nu.yph/AWSIAMManager.py", line 140, in list_users
return self.parser.build_users_obj(users[:max_users_to_return])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/#/AWSIAM_V6.0/gbayu2nu.yph/AWSIAMParser.py", line 7, in build_users_obj
return [AWSIAMParser.build_user_obj({"User": user}) for user in objects_data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/#/AWSIAM_V6.0/gbayu2nu.yph/AWSIAMParser.py", line 7, in <listcomp>
return [AWSIAMParser.build_user_obj({"User": user}) for user in objects_data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/siemplify/siemplify_server/bin/Scripting/PythonSDK/IntegrationsVirtualEnvironment/#/AWSIAM_V6.0/gbayu2nu.yph/AWSIAMParser.py", line 12, in build_user_obj
return User(raw_data=data, **data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: User.__init__() got an unexpected keyword argument 'Path'
----------------- Main - Finished -----------------
Status: 2:
Result Value: False
Output Message: Error executing action List Users. Reason: User.__init__() got an unexpected keyword argument 'Path'
Someone please chec if this is an issue withe the code in 

Sorry Vivek, I have scanned through the code and can't see anything, though it's not really my speciality.


I recommend a support ticket for this one.


Kind regards


Andy


Hello,


Double checked the action itself. While running it we confirmed the same error. Please follow through with your support ticket. 


Thank you for the question,


Ivan Ninichuck 


Reply