Federated User Access to an S3 Bucket Across Multiple AWS Accounts

Abstract: Grant federated users access to an S3 bucket in another AWS account using IAM Identity Center permission sets.

Created: 2026-10-01 by
You can grant federated users access to an Amazon S3 bucket in another AWS account by using IAM Identity Center’s native cross-account permission sets. This approach eliminates the need for complex trust policies or manual role assumption code, allowing you to assign specific permissions directly to users or groups across accounts through a centralized identity provider.

Understanding the Native Cross-Account Model

The previous guidance suggested using AssumeRole with strict tag-based conditions, which is often unnecessary and prone to configuration errors. IAM Identity Center simplifies this by handling the authentication and authorization flow automatically. When you enable cross-account access, Identity Center acts as the central source of truth for identities. It manages the session tokens that allow a user to interact with resources in target accounts without requiring them to manage long-term credentials or write custom scripts for token exchange. This method relies on the concept of Permission Sets rather than individual IAM roles. A Permission Set defines what actions a user can perform, such as reading from an S3 bucket. These sets are assigned to users or groups within the Identity Center identity store. The actual linking between the user's identity and the target AWS account is handled by the "Account Assignment" feature. This separation of concerns ensures that your security posture remains consistent even as you add new users or change their responsibilities.

Prerequisites for Configuration

Before configuring access, ensure that IAM Identity Center is enabled in your organization’s management account. You must have administrative privileges in both the source account (where the user exists) and the target account (where the S3 bucket resides). If you do not already have users provisioned, refer to Create Additional Users in AWS: A Step-by-Step Guide to understand how to populate your identity store. Without active users in the directory, there is no one to assign permissions to. Additionally, verify that the S3 bucket policy allows access from trusted principals. While Identity Center handles most of the heavy lifting, the bucket itself must not block requests from the assumed role. Typically, enabling cross-account access via Identity Center automatically injects the necessary principal ARNs into the session context, but checking the bucket policy is a good diagnostic step if access fails initially.

Creating the Permission Set

Navigate to the IAM Identity Center console in the management account. Select "Permission sets" from the left-hand menu and click "Create permission set." Choose the AWS managed policy option for simplicity, or create a custom policy if you need granular control. For S3 access, select the AmazonS3ReadOnlyAccess managed policy, or create a custom inline policy that specifies the exact bucket ARN you wish to protect. Custom policies are recommended for production environments to follow the principle of least privilege. Your JSON policy should look like this:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::your-target-bucket-name",
        "arn:aws:s3:::your-target-bucket-name/*"
      ]
    }
  ]
}
Replace your-target-bucket-name with the actual name of the bucket in the target account. This policy explicitly grants read-only access to the specified resource. Avoid using wildcard (*) resources unless absolutely necessary, as this increases the risk of accidental data exposure.

Assigning Permissions to Target Accounts

Once the permission set is created, you must associate it with the target AWS account. In the IAM Identity Center console, go to "AWS accounts" and select the target account where the S3 bucket resides. Click on "Assign permissions" for that account. Here, you will select the Permission Set you just created and choose the users or groups who require access. This step is crucial because it binds the identity to the specific AWS account. Without this assignment, the user cannot assume any role in the target account, regardless of the permissions defined in the permission set. You can assign multiple users to the same permission set within the same account, streamlining the management of large teams.

Testing Access and Troubleshooting

After assigning permissions, wait a few minutes for propagation. Log in to the AWS Management Console using the federated user’s credentials. Navigate to the S3 service in the target account. If configured correctly, the user should see the bucket and be able to list objects. If access is denied, check the following:
  • Propagation Delay: Identity Center assignments may take up to 5 minutes to propagate globally.
  • Bucket Policy: Ensure the bucket does not have a deny-all statement that overrides the permission set.
  • User Context: Verify that the user is actually logged into the correct AWS account console view.
For more complex scenarios involving external identity providers, consider reviewing Integrating Keycloak SAML with LDAP Users for AWS Client VPN to understand how external identities map to internal AWS roles. However, for standard S3 access, the native Identity Center workflow is sufficient and more secure.

Frequently Asked Questions

Can I use IAM Identity Center with existing IAM users?

No, IAM Identity Center requires users to exist within its own identity store or be synced from an external directory like Active Directory. You cannot directly attach Identity Center permission sets to legacy IAM users created in the AWS Account. You must migrate those users to the Identity Center store first.

What happens if I remove a user from a group?

If you remove a user from a group that has an assigned permission set, the user loses access immediately upon the next session refresh. There is no grace period, so ensure you reassign permissions to other users before removing critical members from groups to avoid operational disruptions.

Does this method work for programmatic API access?

Yes, federated users can generate temporary security credentials via the AWS CLI or SDK. After logging in through Identity Center, you can use the aws sso login command to obtain credentials. These credentials inherit the permissions defined in the assigned permission set, allowing seamless API integration.

Is there a limit to the number of accounts I can manage?

IAM Identity Center supports managing thousands of AWS accounts within a single organization. The primary limitation is usually administrative overhead rather than technical capacity. As you scale, consider using automated tools or infrastructure-as-code templates to manage bulk account assignments efficiently.

How do I audit who accessed which bucket?

Enable AWS CloudTrail logging for the target S3 bucket. CloudTrail records all API calls, including those made by federated users. You can filter logs by the userIdentity.principalId field to trace actions back to specific Identity Center sessions, providing a clear audit trail for compliance purposes.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More