We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Self Service Password Reset for Entra (hybrid with writeback) not working

Susan Davidson
Tera Guru

I have set up the following:

 

AzureAD Spoke 

 

SusanDavidson_5-1780798729694.png

 

Refresh token is available and not expired
Spoke Credential

SusanDavidson_4-1780798684177.png

 

 

Connects successfully

 

When i go to the /$pwd_reset.do?sysparm_url=sspr public page I am prompted to enter my username, do my identity verification (using MFA right now) and then am given the following message: 

SusanDavidson_3-1780798638121.png

 



The account in entra has writeback enabled, has been granted (at the application level) all required permissions with admin

 

Using the OOB Entral Password Reset flow

SusanDavidson_2-1780798566189.png

 

 

The execution

SusanDavidson_1-1780798546118.png

 


Anyone have ANY ideas - i've been looking at this for so long

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @Susan Davidson 

 

 

Azure AD issues an access token which is valid for 60 minutes only. Without requesting a persistent refresh token explicitly, ServiceNow cannot automatically request a new access token once the hour is up.

 

To fix this, you must explicitly include the offline_access scope inside ServiceNow's OAuth settings so Azure AD knows to issue a long-lived refresh token.

 

  • Navigate to System OAuth > Application Registry in your ServiceNow instance.
  • Open your existing Azure AD / Office 365 Application Registry record.
  • Look at the OAuth Entity Scopes related list at the bottom of the form.
  • Click New to create a new scope record.
  • Fill out the fields precisely:
    • Name: offline_access
    • OAuth Entity Scope: offline_access
  • Click Submit
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Thanks - I actually already have this in the EntraID oauth spoke

SusanDavidson_0-1780863221441.png

SusanDavidson_1-1780863271119.png