Skip to content

How do I provide IAM users with a link to assume an IAM role?

1 minute read
0

I want to provide AWS Identity and Access Management (IAM) users links to an IAM role.

Resolution

To get the link to the IAM role that you want the IAM user to assume, complete the following steps:

  1. Either use an existing IAM user, or create an IAM user in your AWS account. Then, create an IAM role.
  2. Choose the role name. In the Summary section, under Link to switch roles in console, note the link. The link looks similar to https://signin.aws.amazon.com/switchrole?roleName=YOURROLE&account=123456789012.
  3. Grant the IAM user permissions to switch roles.
  4. Provide the link to the IAM user.
  5. Direct the IAM user to follow the instructions at Switch from a user to an IAM role (console). If the IAM user experiences issues, then direct them to I can't assume a role.

Or, you can create a shortcut link in the AWS access portal. The link allows AWS IAM Identity Center users to log in to your account with a specific permission set in the target account.

2 Comments

Can we utilize the new identity center "AWS access portal" feature "Create shortcut" that will log someone in to an account with a specific permission set and ALSO switch role to the target account. This would be a very helpful feature to add to our support pages/runbooks for our L1/L2/SRE team that need access to our 100+ accounts where we have restricted the role switching to a single start account and permission set.

replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
EXPERT
replied a year ago