title: AWS. Get list of Permissions for IAM user
body: <p>I have some question about IAM permissions. I have IAM User. who has such minimal permissions</p>
  
  <p>1) For IAM:</p>
  
  <pre><code>{
  "Version": "2010-12-14",
  "Statement": [
      {
          "Effect": "Allow",
          "Action": [
              "iam:ChangePassword"
          ],
          "Resource": [
              "arn:aws:iam::*:user/${aws:username}"
          ]
      },
      {
          "Effect": "Allow",
          "Action": [
              "iam:GetAccountPasswordPolicy"
          ],
          "Resource": "*"
      }
   ]
  }
  </code></pre>
  
  <p>2) For S3</p>
  
  <pre><code>{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "Stmt1234567890123",
          "Effect": "Allow",
          "Action": [
              "s3:DeleteObject",
              "s3:GetObject",
              "s3:ListBucket",
              "s3:PutObject"
          ],
          "Resource": [
              "*"
          ]
      }
   ]
  }    
  </code></pre>
  
  <p>And I need to write some Api, using Java SDK, which be ablle to check if user has this minimal permissions, but on this level of access, I can not get my own permissions, policies, roles. It is possible to do so with this level of access?</p>