Set HubSpot user defined contact fields as Read Only
We have an AccountId value associated with each of our Contacts. This information is imported from our internal systems into HubSpot environment. Is there a way to define any of our contact fields as Read Only, so that user cannot update value while viewing in HubSpot Contacts’ user interface?
Set HubSpot user defined contact fields as Read Only
is something changed with the availability to set readOnly properties? based also on the users rights.
Sound very very strange that in a multi-user system like yours, that most of the times needed to populated by
an external system, there's no no way to manage seriously different rules per users.
This topic is over 2 years old, so it's quite out of date. The hidden field was locked down a while ago in order to prevent the potential for abuse and/or a poor user experience.
Thanks for your explanation of the readOnly, readOnlyDefinition, and hidden option of contact properties. I'm interested in creating a contact property with the hidden option to true and have its value update only via the API.
I tried to create a property named newcustomproperty with the hidden option set to true but here is the error message I get.
{
"status": "error",
"message": "Field 'hidden' cannot be modified for property 'newcustomproperty'."
}
Set HubSpot user defined contact fields as Read Only
We’re interested in a similar feature too: we would like to add custom properties to a contact, to show them (if needed) in the contact’s properties console, but not to permit the user to alter them in the HubSpot console.
Are there any plans to implement this?
Set HubSpot user defined contact fields as Read Only
@dadams,
I have noticed that in the creation method (POST to https://api.hubapi.com/properties/v1/contacts/properties) it is possible to indicate two boolean properties (readOnlyValue and readOnlyDefinition) in addition to the hidden flag. Since they’re not documented (yet?), I wonder if they are already available and “production-grade” and if they work as expected.
Set HubSpot user defined contact fields as Read Only
@leonardo.scattola those options should not be used for custom properties, as those options will prevent any updates to those properties, including those coming from the Contacts or Contact Properties APIs.
Set HubSpot user defined contact fields as Read Only
@dadams thank you for your quick answer. Just to double-check: I can declare an option as readOnly, thus preventing its update from the HS console (and via API too); however, if I declare a property with readOnlyDefinition set to true I won’t be able to further update it. Am I right?
Set HubSpot user defined contact fields as Read Only
We’d be looking for something very similar to this feature. It’d be a very welcome feature, and to be completely honest, something I’d expect out of any CRUD system that’s multi-user facing, and populated by an external system.
This isn’t something that we currently support, as any property that can be modified through the API could also be modified through the UI. There is a flag in the property settings to make a property read-only, but that limits it to being updated by HubSpot, so it couldn’t be modified through the API or UI.
If you only need to access the property value through the API, it is possible to hide a property in the UI, by setting the property’s hidden attribute to true, but that does make the property completely hidden, so it couldn’t be viewed at all in the UI.
Set HubSpot user defined contact fields as Read Only
Thank you @dadams.
I did not see a hidden flag available when viewing our user defined fields in ‘Contact Properties’. Is this an attribute that can only be set on a property via an API, or am I just in the wrong area to access this flag?
Thanks.
Set HubSpot user defined contact fields as Read Only
The hidden attribute can only be set through the API, since setting it completely hides the property in the UI (so you wouldn’t be able to un-hide the property if you set that accidentally).
Set HubSpot user defined contact fields as Read Only
Yep, the hidden flag doesn’t change anything other than whether or not the property shows up in the UI, so you can set it back to false through the API to have it show up again.