# How to configure Update user profile identity in Firebase rule for Firestore?

**URL:** <https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540>\
**Category:** Get Help\
**Tags:** identity, rules, firestore\
**Created:** [February 20, 2018, 8:44am UTC](https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540 "2018-02-20T08:44:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuilorama](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cuilorama](https://community.auth0.com/u/cuilorama)\
**Post date:** [February 20, 2018, 8:44am UTC](https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540/1 "2018-02-20T08:44:48Z")

</div>

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 20, 2018, 7:41pm UTC](https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540/2 "2018-02-20T19:41:49Z")

</div>

The **Update user profile identity in Firebase** needs two configuration settings:

```
var baseURL = configuration.FIREBASE_URL;
var secret = configuration.FIREBASE_SECRET;

```

You can set these values in the [rules](https://manage.auth0.com/#/rules) page, at the bottom **Settings** , where it states `Heads up! Values stored here will be available to all rules, via the global configuration object.`.

Check this document for more info about the configuration object: [Auth0 Rules](https://auth0.com/docs/rules/current#using-the-configuration-object)

---

<div class="post-metadata">

**Author:** ![cuilorama](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cuilorama](https://community.auth0.com/u/cuilorama)\
**Post date:** [February 21, 2018, 10:00am UTC](https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540/3 "2018-02-21T10:00:12Z")

</div>

Thanks! This works for Firebase’s Realtime Database. How can it work for Cloud Firestore though?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 10:15am UTC](https://community.auth0.com/t/how-to-configure-update-user-profile-identity-in-firebase-rule-for-firestore/9540/4 "2019-07-25T10:15:20Z")

</div>


