The secret token that Microsoft Entra ID uses to send users and groups to Hector through SCIM is valid for 2 years. Before it expires, generate a new token in Hector and paste it into your Entra enterprise application. Otherwise, user and group provisioning stops.
This article explains how to renew the token. To set up the integration for the first time, see the SCIM Integration Guide.
Requirements
- The SCIM integration is already configured (see the SCIM Integration Guide)
- Access to the Settings and Integrations section in Hector
- Access to the “Hector SCIM” enterprise application in Microsoft Entra ID (Application Administrator or Cloud Application Administrator role)
When should I renew the token?
The Expiration date shown on the SCIM integration in Hector tells you when the current token stops working. We recommend renewing it a few weeks before that date. If the token has already expired, Entra can no longer reach Hector: new users aren’t created, and changes and deactivations aren’t applied until the token is replaced.
Step 1: Hector – Generate a new token
- Go to Settings > Integrations > Resources and open the SCIM integration.
- Click on the Refresh Token button (1).
- A new Secret Token (2) is generated, and the Expiration date (3) moves forward by 2 years. The new token is saved right away.
- Copy the new Secret Token.

Note: the previous token keeps working until its original expiration date, so provisioning isn’t interrupted while you complete Step 2. Still, update Entra right away so you don’t forget.
Step 2: Azure – Update the token in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center (or the Azure portal).
- Go to Microsoft Entra ID > Enterprise applications and open the Hector SCIM application.
- In the left menu, click on Connectivity.

- Leave the Tenant URL as it is.
- Replace the content of the Secret Token box with the new token you copied from Hector.
- Click on Test Connection. You should get a message saying the supplied credentials are authorized to enable provisioning.
- Click on Save.

That’s it! Users and groups will keep syncing at the next provisioning cycle (about every 40 minutes).
Get notified before the token expires
To avoid being caught off guard, Hector can send an email one month before the token expires. On the SCIM integration, pick one or more groups in the Groups to notify before the token expires field, then click on Save. Members of these groups will receive an email with a link to the integration.

The email is sent once per token. When you renew the token, the reminder resets automatically for the new expiration date.
Troubleshooting
- Test Connection fails: make sure you copied the whole token, with no extra spaces, and that the Tenant URL hasn’t changed.
- The token had already expired and provisioning is in quarantine: after saving the new token, go back to the Provisioning page and click on Restart provisioning to resume syncing right away.
- Checking the requests received: the history of SCIM requests sent by Entra is available in Hector on the integration history page. Logs are kept for 2 weeks.