When a user is allowed to upload to a private or protected prefix in S3 storage, they send it to a prefix that although the documentation says is something akin to a cognito sub, it is in fact not quite sub you would find on their cognito user page. It's also not the sub nor the user identity included in a GraphQL owner field (which seems to just be the cognito sub twice, even though the documentation says the second part of it is an identity). This is fine, but I need a way to either replace that with their actual cognito sub, or away to translate that identity ID into their cognito sub.
I tried a method I found online to use "principle tags" to allow access to a cognito sub-based prefix, but that didn't seem to work. Does anyone know how I could get the cognito sub-based approach to work, or how to translate the identity ID into the cognito sub?