Skip to content

How to get IdentiyID all users from Admin Queries #5177

Closed as not planned
Closed as not planned
@apoorvmote

Description

@apoorvmote

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 read protected images stored in S3.

It also mentions that you can get current user's IdenitityID by

const cred = await Auth.currentCredentials()

console.log('Identity Id', cred.identityId)

But how do I get IdentityID after I listUsers from admin queries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthRelated to Auth components/categoryquestionGeneral question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions