Firebase real-time database (Get other user info based on UID) with RESTHow do I return a list of users if I use the Firebase simple username & password authenticationCan't get list of usersAccess Firebase user UID by email address from JavaLinking user uid to firebase databaseHow to specify the Firebase UID for a user?Get other users firebase for admin user?How to delete any other user besides the currentUser with Firebase?Firebase real-time database authentication for multiple usersUsing Firebase User UID to retrieve profile infoHow to delete a user with UID from Real Time Database in Firebase?Firebase get Authentication details using UIDFirebase - Edit other user data
What is Japanese Language Stack Exchange called in Japanese?
Why the word "rain" is considered a verb if it is not possible to conjugate it?
Is there a standard terminology for female equivalents of terms such as 'Kingdom' and if so, what are the most common terms?
What's the biggest organic molecule that could have a smell?
I asked for a graduate student position from a professor. He replied "welcome". What does that mean?
Georgian capital letter “Ⴒ” (“tar”) in pdfLaTeX
How can a resurrection system prevent the cheapening of death?
Tall red piece with coffee cup, phone and gas picture?
Seized engine due to being run without oil
Writing a love interest for my hero
Can a magnet rip protons from a nucleus?
What does "synoptic" mean in avionics?
A Little Riddle
Does the amount of +1/+1 from *prowess* remain on a creature, even when a creature gets flipped face-down by Ixidron?
Are there any instances of members of different Hogwarts houses coupling up and marrying each other?
Are there any space probes or landers which regained communication after being lost?
Job offer without any details but asking me to withdraw other applications - is it normal?
Will replacing a fake visa with a different fake visa cause me problems when applying for a legal study permit?
Do ibuprofen or paracetamol cause hearing loss?
Sol Ⅲ = Earth: What is the origin of this planetary naming scheme?
How could a imperial dynasty keep a loose collection of pirates, raiders, etc unified?
How to find a missing person abroad
How can I fix a framing mistake so I can drywall?
How do email clients "send later" without storing a password?
Firebase real-time database (Get other user info based on UID) with REST
How do I return a list of users if I use the Firebase simple username & password authenticationCan't get list of usersAccess Firebase user UID by email address from JavaLinking user uid to firebase databaseHow to specify the Firebase UID for a user?Get other users firebase for admin user?How to delete any other user besides the currentUser with Firebase?Firebase real-time database authentication for multiple usersUsing Firebase User UID to retrieve profile infoHow to delete a user with UID from Real Time Database in Firebase?Firebase get Authentication details using UIDFirebase - Edit other user data
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have an app created with Firebase real-time database and I've created a few users, all with REST methods found here: https://firebase.google.com/docs/reference/rest/auth/
I can get the user info for the current user, but I would like to have a REST endpoint to fetch all the users (UID, email, displayPhoto, name, etc) or at least a user by UID. I haven't found this method in the link above.
I know that there is an SDK to do that (https://firebase.google.com/docs/auth/admin/manage-users), but I would like to do this with REST since the full app is using REST.
Does anybody know if this is possible and has the rest endpoint?
Thank you!
firebase firebase-authentication
add a comment |
I have an app created with Firebase real-time database and I've created a few users, all with REST methods found here: https://firebase.google.com/docs/reference/rest/auth/
I can get the user info for the current user, but I would like to have a REST endpoint to fetch all the users (UID, email, displayPhoto, name, etc) or at least a user by UID. I haven't found this method in the link above.
I know that there is an SDK to do that (https://firebase.google.com/docs/auth/admin/manage-users), but I would like to do this with REST since the full app is using REST.
Does anybody know if this is possible and has the rest endpoint?
Thank you!
firebase firebase-authentication
add a comment |
I have an app created with Firebase real-time database and I've created a few users, all with REST methods found here: https://firebase.google.com/docs/reference/rest/auth/
I can get the user info for the current user, but I would like to have a REST endpoint to fetch all the users (UID, email, displayPhoto, name, etc) or at least a user by UID. I haven't found this method in the link above.
I know that there is an SDK to do that (https://firebase.google.com/docs/auth/admin/manage-users), but I would like to do this with REST since the full app is using REST.
Does anybody know if this is possible and has the rest endpoint?
Thank you!
firebase firebase-authentication
I have an app created with Firebase real-time database and I've created a few users, all with REST methods found here: https://firebase.google.com/docs/reference/rest/auth/
I can get the user info for the current user, but I would like to have a REST endpoint to fetch all the users (UID, email, displayPhoto, name, etc) or at least a user by UID. I haven't found this method in the link above.
I know that there is an SDK to do that (https://firebase.google.com/docs/auth/admin/manage-users), but I would like to do this with REST since the full app is using REST.
Does anybody know if this is possible and has the rest endpoint?
Thank you!
firebase firebase-authentication
firebase firebase-authentication
edited Mar 28 at 13:46
Frank van Puffelen
275k36 gold badges446 silver badges466 bronze badges
275k36 gold badges446 silver badges466 bronze badges
asked Mar 28 at 9:01
Adrian FlorescuAdrian Florescu
1,7893 gold badges37 silver badges64 bronze badges
1,7893 gold badges37 silver badges64 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There is no public REST API to get a list of all users. The reason for this is that getting a list of users is considered a sensitive operation, and allowing that from client-side code would be risky.
The common way to implement your use-case is to build your own endpoint, either on a server you already control, or with Cloud Functions. There you can use the Admin SDK to get the list of users, and then return that to your caller. Make sure to limit what data you return and to properly secure that endpoint though, as otherwise you'll be putting your user's information at risk.
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393626%2ffirebase-real-time-database-get-other-user-info-based-on-uid-with-rest%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is no public REST API to get a list of all users. The reason for this is that getting a list of users is considered a sensitive operation, and allowing that from client-side code would be risky.
The common way to implement your use-case is to build your own endpoint, either on a server you already control, or with Cloud Functions. There you can use the Admin SDK to get the list of users, and then return that to your caller. Make sure to limit what data you return and to properly secure that endpoint though, as otherwise you'll be putting your user's information at risk.
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
add a comment |
There is no public REST API to get a list of all users. The reason for this is that getting a list of users is considered a sensitive operation, and allowing that from client-side code would be risky.
The common way to implement your use-case is to build your own endpoint, either on a server you already control, or with Cloud Functions. There you can use the Admin SDK to get the list of users, and then return that to your caller. Make sure to limit what data you return and to properly secure that endpoint though, as otherwise you'll be putting your user's information at risk.
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
add a comment |
There is no public REST API to get a list of all users. The reason for this is that getting a list of users is considered a sensitive operation, and allowing that from client-side code would be risky.
The common way to implement your use-case is to build your own endpoint, either on a server you already control, or with Cloud Functions. There you can use the Admin SDK to get the list of users, and then return that to your caller. Make sure to limit what data you return and to properly secure that endpoint though, as otherwise you'll be putting your user's information at risk.
There is no public REST API to get a list of all users. The reason for this is that getting a list of users is considered a sensitive operation, and allowing that from client-side code would be risky.
The common way to implement your use-case is to build your own endpoint, either on a server you already control, or with Cloud Functions. There you can use the Admin SDK to get the list of users, and then return that to your caller. Make sure to limit what data you return and to properly secure that endpoint though, as otherwise you'll be putting your user's information at risk.
answered Mar 28 at 13:49
Frank van PuffelenFrank van Puffelen
275k36 gold badges446 silver badges466 bronze badges
275k36 gold badges446 silver badges466 bronze badges
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
add a comment |
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
Thank you, Frank! Will try with Cloud functions. Thanks for the security information, will keep that in mind. Also, this is just a POC app.
– Adrian Florescu
Mar 28 at 17:45
1
1
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
I actually just noticed that you mentioned the Firebase Realtime Database too. That's another alternative that lots of developer use: have each user write their pertinent profile information fo the database (either Realtime Database or Firestore) and read it from there. For more on that approach see: stackoverflow.com/a/14676121, stackoverflow.com/a/41550957,
– Frank van Puffelen
Mar 28 at 19:47
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
Sound good! Thanks, Frank!
– Adrian Florescu
Mar 28 at 21:30
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393626%2ffirebase-real-time-database-get-other-user-info-based-on-uid-with-rest%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown