Re-create expired Client Secret for a SharePoint Addin

There are moments when PHA’s client secrets expire.

If you generated the ClientId and ClientSecret using the /appregnew.aspx, then the secret will expire in 1 year.

The script below removes the current secrets and creates new ones valid for max. 3 years.


Leave a Reply