OAuthRequiredScopes Parameter (Connect-HubSpot Cmdlet)
A comma-separated set of permissions that your Hubspot app needs access to.
Syntax
Connect-HubSpot -OAuthRequiredScopes string
Data Type
cstr
Default Value
"oauth crm.lists.read crm.lists.write crm.objects.companies.read crm.objects.companies.write crm.objects.contacts.read crm.objects.contacts.write crm.objects.deals.read crm.objects.deals.write crm.objects.owners.read crm.schemas.deals.read crm.schemas.deals.write crm.schemas.companies.read crm.schemas.companies.write crm.schemas.contacts.read crm.schemas.contacts.write"
Remarks
Any scopes that are checked off as conditionally required can be optionally included in this property and HubSpot will ask you to give consent to those scopes when signing into your account. If the user's account does not have access to the features granted by a conditionally required scope, the authorization page will display an error.
On the other hand, if the scopes are checked off as required however, they must always be included in this property, otherwise the the authorization page will display an error.
Refer to the HubSpot API documentation for more details.