title: Restrict List of Buckets for a Specific User
body: <p>I've been able to generate a user policy that only gives access to a specific bucket, however after trying everything (including this post: <a href="https://stackoverflow.com/questions/6615168/s3-policy-limiting-access-to-only-one-bucket-listing-included">Is there an S3 policy for limiting access to only see/access one bucket?</a>).</p>
  
  <p><strong>The problem:</strong> I am unable to restrict the <em>listing</em> of the buckets down to just one bucket.  For a variety of reasons, I do not want the listing to show any buckets other than the one specified.</p>
  
  <p>I've tried a variety of policies, to no avail.  Here's my latest policy JSON which is working as far as restricting operations, but not listing:</p>
  
  <pre><code>{
      "Statement": [
      {
          "Effect": "Allow",
          "Action": [
              "s3:ListAllMyBuckets",
              "s3:ListBucket",
              "s3:GetBucketLocation"
          ],
          "Resource": "arn:aws:s3:::*"
      },
      {
          "Effect": "Deny",
          "Action": [
              "s3:ListBucket"
          ],
          "NotResource": [
              "arn:aws:s3:::acgbu-acg",
              "arn:aws:s3:::acgbu-acg/*"
          ]
      },
      {
          "Effect": "Allow",
          "Action": [
              "s3:*"
          ],
          "Resource": [
              "arn:aws:s3:::acgbu-acg",
              "arn:aws:s3:::acgbu-acg/*"
          ]
      }
  ]
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.  I'm beginning to wonder if it's even possible.</p>