How to delete another user from Firebase using Ionic2 - firebase-realtime-database

Have seen lots of entries from the AngularFire2 side on how to delete a current logged in user, but what if you are the current logged in user trying to delete another user? I can't find anything to help me here.
Is it possible to run Admin SDK functions from a Firebase cloud function?
Any other ideas?

Related

iOS Firebase Swift: A way To Get All Users Using Auth

Is there a way to get all signed up users using FirebaseAuth. I know I can create users node and save users when they sign up, but I'm looking for a way to get users using something like Auth.getAllUsers since all I'm looking for is uid and displayName. I'm using swift, so admin sdk seems not supporting it.
There is no client-side API to get a list of all users, which is why many developers write details about the users into a database (such as the Firebase Realtime Database, or Cloud Firestore).
There is a server-side Admin SDK that allows listing all users. See https://firebase.google.com/docs/auth/admin/manage-users#list_all_users
You can create a cloud function that returns the results of the Admin SDK list all users function. Make sure that you remove any private data fields from the reply, though. The hashed password, salt, and providers are included in the data.

Does google return list of friends who are already using my app like facebook?

In my app sign up is possible from both Facebook and Google. And there is a requirement for accessing friends list/contacts to check who are all my friends that are already using the app. Now, Facebook already returns the response as a list of friends who are using the app that I integrated the FB SDK in.
I want to know is there any way to get list of contacts that are already in my app using Google APIs? Or I have to fetch emails of my contacts from Google and manually check in my DB if they exist or not and decide on my on?
Thanks in advance.
Cheers,
Rahul
I am the product manager for Google Sign-In. This is no way to get a list of users who already using a service ... you would have to request access to and fetch a full list of a user's contacts and check for existing users in your own database.

How to automatically delete Firebase inactive users from database and authentication?

Even if the users are not anonymous, I would like to automatically delete the user authentication and user info in the database if they have not logged in for say, a year. This is to prevent old or spam accounts from taking up space in Firebase.
Is this possible without manually checking and deleting on the Firebase console?
You can use the Firebase Cloud Functions.
This sample do exactly what you need.
Here more samples for Firebase Cloud Functions.

Get Notification when new user added in azure active directory?

i have created one application that get all users details from azure Active directory using graph api bt i need when new user added in organization give notification in my application any service or available for that or not.
thanks in advance.
i have already created check all user count and check after every some time but its not reliable solution any other solution i need for that.

Cannot find users after importing project into new Firebase console

I am upgrading my project from Firebase.com to console.firebase.google. i have follow the steps on the migration guide on the below link.
https://firebase.google.com/support/guides/firebase-ios#import_your_project_to_the_new_firebase_console_numbered
The database imported successfully but my user not able to imported from the firebase to goole console.
I need the help regarding this. Any helpful answer is highly appreciated.
From the docs
Your user data is automatically migrated to the new authentication backend. This happens in the background and your users can continue to use the app while the data is being migrated. User signups and logins will not be affected. While the system is migrating user accounts, you will see a spinner in the Auth tab of the Firebase Console.
You could wait for a while as this is a background process, and can you see a spinner in the Auth Tab to confirm users are being synced or not ?

Resources