# Help with getting users from firestore & Ionic4

**URL:** <https://forum.ionicframework.com/t/help-with-getting-users-from-firestore-ionic4/185240>\
**Category:** Ionic Framework\
**Created:** [March 16, 2020, 7:42pm UTC](https://forum.ionicframework.com/t/help-with-getting-users-from-firestore-ionic4/185240 "2020-03-16T19:42:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahuelreymundo](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nahuelreymundo](https://forum.ionicframework.com/u/nahuelreymundo)\
**Post date:** [March 16, 2020, 7:42pm UTC](https://forum.ionicframework.com/t/help-with-getting-users-from-firestore-ionic4/185240/1 "2020-03-16T19:42:56Z")

</div>

Hi  
Im my register page i have a Register Form, and my .ts it’s like:

Register.ts

> register(user:User){  
> this.auth.auth.createUserWithEmailAndPassword(user.email,user.password).then(()=\>{  
> this.auth.authState.subscribe(auth =\>{  
> this.db.collection(`Empresas/${auth.uid}`).add({  
> ‘empresa’: user.empresa,  
> ‘email’: user.email,  
> ‘telefono’:user.telefono,  
> ‘razon’:user.razon,  
> ‘cuit’:user.cuit,  
> ‘ciudad’:user.ciudad,  
> ‘direccion’:user.direccion,  
> ‘rubro’:user.rubro,  
> ‘trabajadores’:user.trabajadores,  
> ‘descripcion’:user.description  
> }).then(()=\>{  
> this.storage.set(‘user’, user.empresa);  
> this.storage.set(‘loged’,true)  
> this.router.navigateByUrl(‘tabs’)  
> })  
> })  
> })  
> }

I want to get the user data stored in firestore to display it in my **Profile Page**  
I thought filtering by mail in the firestore collection.  
Can anyone help me with this?
