Skip to content

Switch role link query parameters

0

At IAM > roles > ROLE_WITH_TRUST_RELATIONSHIP you can find a link for switch role that leads to web page with pre-filled fields. The link always have 2 query parameters and looks like this: https://signin.aws.amazon.com/switchrole?roleName=SOME_ROLE_NAME&account=ACCOUNT_ID. So the person following the link should choose display name and color themself. I've found that display name can also be set by adding parameter to query: https://signin.aws.amazon.com/switchrole?roleName=SOME_ROLE_NAME&account=ACCOUNT_ID&displayName=admin This behavior is not documented, so I'm wondering how to also set color using the query. &color=Red makes field empty, which means "color" is correct name, but I have no idea what are correct values. If someone have documentation for this behavior or managed to guess it - please let me know.

asked 2 years ago691 views
1 Answer
3
Accepted Answer

the "color" parameter uses 16-bit color notation (ffffff - black) and accepts only particular values, like "&color=efda95" for yellow. Full list of accepted colors (at 27/08/2024):

  • Red f2b0a9
  • Blue 83d4e8
  • Green b7ca9d
  • Yellow efda95
  • Orange fbc8aa
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • Note: frontend developers love to update colors, so they change from time to time, and some of the provided above are not accepted anymore.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.