Getting cognito user pool username from cognito identity pool identityId
问题 I am using AWS Congito User Pools for account management with a Cognito Identity Pool that has this User Pool as the Identity Provider. I'm using this to control access to an API through API Gateway that sends requests to Lambda. My Lambda is implemented with Java 8 using Micronaut. All of this is working fine. In the Lambda, I'm getting the name from the Principal in the HttpRequest : protected String resolveUser( HttpRequest request ){ String ret = null; Optional<Principal> principal =