Run the following command to extract all your AWS IAM settings:
aws iam get-account-authorization-details > account_auth.json
Enabled on the configuration of the database
apoc.import.file.enabled=true
MATCH (p:IAM_Policy)-[]->(n)
WHERE p.name = '<PolicyName>'
RETURN n,p
MATCH (u:IAM_User) RETURN u
MATCH (u:IAM_User)-[]->(g:IAM_Group) RETURN u,g
MATCH (u:IAM_User)-[:MEMBER_OF]->(g:IAM_Group)
WITH count(u) as n,u,g
WHERE n > 0
RETURN u,g
MATCH (r:IAM_Role) RETURN r
MATCH (r:IAM_Role)-[]->(p:IAM_Policy)
WITH count(p) as n, r, p
WHERE n > 0
RETURN r,p
MATCH (r:IAM_Policy_Resource)<-[:HAS_RESOURCE]-(p:IAM_Policy)<-[:HAS_POLICY]-(u:IAM_User)
MATCH (a:IAM_Policy_Action)<-[:HAS_ACTION]-(p:IAM_Policy)
RETURN r,p,u,a