Skip to content
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

feat(galaxy): Return a list of all users associated with an app #2716

Closed
tbenbow opened this issue Oct 13, 2023 · 0 comments · Fixed by #2826
Closed

feat(galaxy): Return a list of all users associated with an app #2716

tbenbow opened this issue Oct 13, 2023 · 0 comments · Fixed by #2826
Assignees
Labels
enhancement Indicates new feature requests

Comments

@tbenbow
Copy link

tbenbow commented Oct 13, 2023

Feature Request

Return a list of all users associated with an app via the Galaxy API. Include all connected identities.

Description

A nice structure for the data returned could be...

[{
  "connected_accounts": [
    {
      "type":"email",
      "identifier":"user1@gmail.com"
    },
    {
      "type":"email",
      "identifier":"user1@example.com"
    }
  ],
  "sub":"urn:rollupid:identity/0x6f80664f704e9ae623057f8d4cc22afsd32eef609f86d4b7a"
},
{
  "connected_accounts": [
    {
      "type":"email",
      "identifier":"user2@gmail.com"
    },
    {
      "type":"email",
      "identifier":"user2@example.com"
    }
  ],
  "sub":"urn:rollupid:identity/0x6f80664f704e9ae623057f8d4cc22afe9dee83u746d4b7a"
}]

Proposed Solution

Perhaps this could live under authorizedApps.

{
  authorizedApps {
    users {
      connectedAccounts {
        type
        identifier
      }
      sub
    }
  }
}

Additional Context

We are using Rollup to validate that users in our application truly own the accounts they claim to own. Because identities can be changed via the passport login without our apps knowledge we need a way to get a list of the users and their connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants