1 Answer
- Newest
- Most votes
- Most comments
0
To allow a user from within your AWS organization to access an S3 bucket created by the root user, after they've logged in through SSO with permissions from Azure Entra ID, you'll need to follow these steps:
- Ensure SSO is properly configured:
- Verify that your Azure Entra ID integration with AWS SSO is working correctly
- Make sure the user has been assigned to the appropriate AWS account in the AWS Access portal
- Confirm that the user can successfully log in through SSO
- Create or update the permission set:
- In AWS IAM Identity Center (formerly AWS SSO), modify the permission set assigned to the user
- Add S3 permissions to the permission set that allow the necessary actions (e.g., s3:GetObject, s3:ListBucket)
- Ensure the permission set is assigned to both the user and the AWS account containing the S3 bucket
- Update the S3 bucket policy:
- Add a statement to the bucket policy that allows access from the organization using the
aws:PrincipalOrgIDcondition key - Example bucket policy:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "*", "Action": ["s3:GetBucketLocation", "s3:ListBucket"], "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME", "Condition": { "StringEquals": { "aws:PrincipalOrgID": "o-xxxxxxxxxxx" } } }, { "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*", "Condition": { "StringEquals": { "aws:PrincipalOrgID": "o-xxxxxxxxxxx" } } } ] }
- Important note about bucket visibility:
- The bucket will not automatically appear in the S3 console for users in other accounts
- The user will need to know the bucket name or be provided with a direct URL to access it
- The
ListBucketsAPI only shows buckets in the caller's own AWS account
By following these steps, your user will be able to access the S3 bucket after logging in through SSO with their Azure Entra ID credentials, provided they have the appropriate permission set assigned to them.
Sources
Add users in organization to S3 buckets | AWS re:Post
SSO For Extra Accounts Added under Root | AWS re:Post
answered 10 months ago
Relevant content
- asked 2 years ago
