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;








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!










share|improve this question
































    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!










    share|improve this question




























      0












      0








      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!










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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

























          1 Answer
          1






          active

          oldest

          votes


















          1
















          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.






          share|improve this answer

























          • 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










          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
          );



          );














          draft saved

          draft discarded
















          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









          1
















          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.






          share|improve this answer

























          • 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















          1
















          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.






          share|improve this answer

























          • 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













          1














          1










          1









          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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








          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.




















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript