HubSpot provisioning flow fails with the following error visible in the Okta dashboard:
Automatic provisioning of user <username> to app HubSpot failed: Error while creating user <username>: Bad Request. Errors reported by remote server: Portal <portal> is not allowed to manage users with domain '<domain>'.
- HubSpot
- Provisioning
- Error
This error occurs when the domain is not verified; it must be verified in HubSpot by updating the DNS records.
Please check this document for more details: Provision HubSpot users with SCIM through Okta.
-
Verify the domain in HubSpot by updating the DNS records.
-
In the HubSpot account, click the settings icon
in the main navigation bar.
-
In the left sidebar menu, navigate to Integrations > Connected Apps.
-
Click Okta SCIM.
-
In the Domain field, enter the user's email sending domain.
-
-
-
Click Save.
-
Click Verify it now.
-
In the dialog box, select Next.
-
Copy the value in the Value column. Use this value when creating a new TXT record in the DNS provider.
-
Log in to the DNS provider account and create a new TXT record for the domain being verified. Paste the value copied from HubSpot into the Value/Points To/Target field.
-
After the TXT record is created, navigate back to HubSpot and click Next. Once the DNS changes propagate, the domain will be verified.
-
- Attempt the failed tasks again. Go to the Okta Admin Console and navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.
- After identifying the failed task for the user to be retried, click Retry Selected.
NOTE: If the issue persists, please contact HubSpot support for more details and steps to resolve this error.
