Skip to main content

AWS IAM Soar integration mdoule showing error

  • Dec 4, 2024 2:12 PM UTC
  • 2 replies
  • 55 views

Forum|alt.badge.img+1

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 

2 replies

SoarAndy
Forum|alt.badge.img+12
  • Bronze 1
  • Dec 6, 2024 12:11 PM UTC

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


ipninichuck
Staff
Forum|alt.badge.img+6

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