How to get user attributes (username, email, etc.) using cognito identity id
<p>I have AWS Cognito Identity Pool that is configured with Cognito User Pool as an authentication provider.</p>

<p>Assume I have identity ID of an identity in Cognito Identity Pool (e.g. us-east-1:XXaXcXXa-XXXX-XXXX-XXX-XXXXXXXXXXXX) where this identity has a linked login to a user in Cognito User Pool.</p>

<p>Using identity ID, how can I get the linked user details (email, phone, username)?</p>