IAM identity center in policy variables

0

Hi,

Is there a way to obtain a username of a user that's loging in with Identity Center?

I want to implement this same thing that works fine with regular IAM users.

Thanks!

1 Answer
1
Accepted Answer
AWS
SergioA
answered a year ago
profile picture
EXPERT
reviewed a day ago
  • Hi Sergio,

    The one that works is second one: role-id:username (not Display name), the first one, using account-id does not work.

    Thanks for your help

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.

Guidelines for Answering Questions