Restrict listing 5 out of 10 folders for given prefix through IAM policy

0

Dear Team,

I have a bucket named my-bucket and it has a users folder. There are 5 individual user-name folder inside users folder. I want to make sure each user gets to see his/her own folder but can not see other user folders(I can restrict access to the content of the folder but want that one user should not see other users folder as well). Is it possible ?

Ex. Below is the folder structure i have : my-bucket users UserA UserB UserC UserD UserE

when UserE logs in, he/she should not see UserD folder in S3. I am able to restrict the content view of UserD folder but UserE still sees userD folder and then on click of UserD folder, he gets access denied error.

Please let me know if i can restrict UserE from seeing any other users folders if he clicks on users folder

Thanks, Dhaval Mehta

1回答
0
profile pictureAWS
エキスパート
kentrad
回答済み 2年前
  • This just help to restrict the content in other users folder but does not help to viewing of other users folder names. I want UserE not to see UserD folder itself since he/she does not have access to content of that folder

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ