# Provision a custom object on app install?

**URL:** <https://community.hubspot.com/t/provision-a-custom-object-on-app-install/120999>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 20, 2024, 6:23pm UTC](https://community.hubspot.com/t/provision-a-custom-object-on-app-install/120999 "2024-11-20T18:23:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BHadley](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@BHadley](https://community.hubspot.com/u/BHadley)\
**Post date:** [November 20, 2024, 6:23pm UTC](https://community.hubspot.com/t/provision-a-custom-object-on-app-install/120999/1 "2024-11-20T18:23:55Z")

</div>

We are working on an app that has an optional custom object that the app will write data into and associate it to a contact record. We can successfully write data into the custom object when it exists on the tenant, the issue is with the initial create of the object.

My question is about provisioning the custom object for the user - when I call the api with the oauth token for the portal I am getting back an error saying that this is not allowed. I have reviewed the scopes available for an app and I dont really see a scope that would allow me to do this. We are considering creating documentation to guide the user through the creation of the custom object by hand, but this does not seem like an ideal solution

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [November 20, 2024, 9:21pm UTC](https://community.hubspot.com/t/provision-a-custom-object-on-app-install/120999/2 "2024-11-20T21:21:32Z")

</div>

Hi @BHadley

Just checking your scopes include **crm.schemas.custom.write** (which doesn’t appear in the [new docs](https://developers.hubspot.com/beta-docs/guides/apps/authentication/scopes)).

This will allow you to push a new Custom Object Definintion into a HubSpot Portal.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![BHadley](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@BHadley](https://community.hubspot.com/u/BHadley)\
**Post date:** [November 20, 2024, 9:28pm UTC](https://community.hubspot.com/t/provision-a-custom-object-on-app-install/120999/3 "2024-11-20T21:28:21Z")

</div>

Thanks Mike! It looks like this schema is not available to public apps by design? My plan B is to have the users provision it themselves, seems I will just have to make some sturdy documentation to make this simple.
