Unfortunately, it has not been possible to upload template files to my prod environment via the hubspot cli for a few days now.
A HubSpotAuthError has occurred. Error while retrieving new access token: User xxx in account xxx does not have access to the following scopes [crm.schemas.custom.write,crm.objects.custom.write] in the token. Please generate a new token and try again.
If I try to generate a new token with hs auth and visit the secure page an error is shown, that the actual token can not be shown (see image). Generating a new token leeds to the same scope error.
The following helped: Since I was caught in a loop that kept leading to a token with scope errors that could no longer be displayed or edited, I created a new token and immediately deactivated it without reloading the page. I was then able to generate a new token without scope errors again.
The following helped: Since I was caught in a loop that kept leading to a token with scope errors that could no longer be displayed or edited, I created a new token and immediately deactivated it without reloading the page. I was then able to generate a new token without scope errors again.
Thanks, I am in contact with HubSpot support. As a temporary solution, I have created a second admin account, which is not affected by the scope error.
Hey @Schascha👋 Thanks for your post. That is definitely an interesting, and frustrating, situation. This may be “faster” to get a resolution with a support ticket. Either by you, or your admin if you cannot. And I am happy to help where I can. I did some digging through old support tickets looking for matching, exact or partial, cases. I found a similar case that didn't give me an answer, but did provide a few questions to ask (these answers will be helpful in dealing with support as well 😊)
Does this portal have an Enterprise-level subscription?
If not, do you know if this portal ever did in the past but has since downgraded?
Or, if not, do you know if this portal had an Enterprise trial in the past? (your super admin might know this)
Lastly, if you DM me the HubID (portal ID) I can take a look to see if there were any tier changes in the past or if there was an Enterprise trial (I would not have access to the portal, but I can view some info from our internal tools)
One other step you can take (and that support may request from you) is to collect a HAR file. Basically, you'd set up your browser to record a HAR, step though the process you take to get to the error, save the HAR file, and then you can analyze it on your own: