New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get IdentiyID all users from Admin Queries #5177
Comments
Any update on this? I also need to get the users identity id... I can't retrieve a users protected file from s3 without it... |
I'm wondering about this also, in my case users upload a pdf file to the protected folder, but if I want users to be able to let other users view these docs then I need their identityId. Otherwise I could use public but I dont want to use public. Is this something I could do in my statements. Or should I save the users identityId to my user model and go about it this way, thank you. |
Any updates on this? |
It is really a shame there is no easy way to do this. Retrieving the identityId ranges from a chore to downright unpractical. |
Does the It does not provide you the 1-1 mapping between a user in user pool and its identity id in identity pool, but it can help polling for all the identities (paginated) in an identity pool. |
Hi @apoorvmote - does the solution mentioned by @hkjpotato provide you with what you need? This might be something we should expend on our admin APIs provided by the CLI as well. https://docs.amplify.aws/cli/auth/admin/#admin-queries-api |
I'm surprised that this is 2 years old. I am using Cognito. My use case is that User A has uploaded an asset to S3 and User B, related to User A, needs to access it. Do I understand correctly that I need to track the IdentityID of every User and check for permissions at the application-level in order to accomplish that? |
Hi @soulcubby we are currently tracking this as a feature request with Cognito on #54, so I'll go ahead and close this issue in favor of #54. Thanks! |
Which Category is your question related to?
Auth, Storage
What AWS Services are you utilizing?
Cognito, AWS AppSync, Lambda, Storage
Provide additional details e.g. code snippets
as mentioned in #2203 I need each users
IdentityID
to just to readprotected
images stored in S3.It also mentions that you can get current user's
IdenitityID
byBut how do I get
IdentityID
after IlistUsers
from admin queries?The text was updated successfully, but these errors were encountered: