# Context object in database scripts -\> Where to find documentation about this?

**URL:** <https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [February 24, 2023, 9:10am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209 "2023-02-24T09:10:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemexxis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nemexxis/32/44905_2.png) [@nemexxis](https://community.auth0.com/u/nemexxis)\
**Post date:** [February 24, 2023, 9:10am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/1 "2023-02-24T09:10:19Z")

</div>

Hi,

im searching for documentation about the “context” object that is passed for the custom database scripts and i dont find anything.

Can someone point where to look at?

Thanks

---

<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:** [February 27, 2023, 9:13am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/2 "2023-02-27T09:13:53Z")

</div>

Hey there!

I’d like to help you on that! Can you let me know what quickstarts / docs etc are you utilising so far? Thank you!

---

<div class="post-metadata">

**Author:** ![nemexxis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nemexxis/32/44905_2.png) [@nemexxis](https://community.auth0.com/u/nemexxis)\
**Post date:** [February 27, 2023, 9:28am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/3 "2023-02-27T09:28:25Z")

</div>

im searching in [Auth0](https://auth0.com/docs) and here in the community…

the only thing i found is about the “context object” in Rules but the one for the Database connection.

---

<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:** [February 27, 2023, 10:43am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/4 "2023-02-27T10:43:27Z")

</div>

Gotchya! It seems like it’s not documented in the docs. Let me reach out to one of our engineering teams so we can get their help on that!

---

<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:** [March 3, 2023, 8:16am UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/6 "2023-03-03T08:16:52Z")

</div>

Hey there!

Sorry for a bit of delay. Here’s all you need:

The context object in custom database scripts currently only supports `realm` and `organization` objects. You can check more here:

> **[Create Custom Database Connections](https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection?_gl=1*1f5tobs*rollup_ga*MjczMjY3NTAwLjE2NTc1MjEyNTY.*rollup_ga_F1G3E656YZ*MTY3NzgyOTQyOC4xODEuMS4xNjc3ODMxMjAxLjYwLjAuMA..&_ga=2.213527891.616791401.1677759989-273267500.1657521256#custom-database-support-for-organizations)**
>
> Learn how to create a database connection.

---

<div class="post-metadata">

**Author:** ![nemexxis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nemexxis/32/44905_2.png) [@nemexxis](https://community.auth0.com/u/nemexxis)\
**Post date:** [March 3, 2023, 12:00pm UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/7 "2023-03-03T12:00:37Z")

</div>

Thanks konrad.sopala.

Do you know where i can find documentation about the realm and organization objects??

Are these 2 objects passed right inside the context object?? Like  
contextobject {  
realm,  
organization  
}

??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 17, 2023, 12:01pm UTC](https://community.auth0.com/t/context-object-in-database-scripts-where-to-find-documentation-about-this/101209/8 "2023-03-17T12:01:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
