{"id":8518,"date":"2025-01-14T21:33:55","date_gmt":"2025-01-14T21:33:55","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8518"},"modified":"2025-05-01T02:23:28","modified_gmt":"2025-05-01T02:23:28","slug":"adfs-http-error-401-unauthorized-access-is-denied-adfs-crm-adfs","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/adfs-http-error-401-unauthorized-access-is-denied-adfs-crm-adfs","title":{"rendered":"ADFS HTTP Error 401 &#8211; Unauthorized: Access is denied ADFS &#8211; CRM \\ ADFS &#8211; An Error Occured"},"content":{"rendered":"\n<p>When the ADFS Token-sgining and Token-Decrypting certificates in ADFS are automatically renewed, users in CRM might not be able to login. They receive HTTP 401 Unauthorized Access is denied errors. or &#8220;An Error Occured&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"621\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15-1024x621.png\" alt=\"\" class=\"wp-image-8836 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15-1024x621.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15-300x182.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15-768x466.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15-1536x931.png 1536w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-15.png 1656w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To remove the expired token certificate you will need to use PowerShell, To add the ADFS commands, in PowerShell type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">add-pssnapin microsoft.adfs.powershell<\/code><\/pre>\n\n\n\n<p>Then to delete the expired certificate, use the following command twice, once for the Token-Signing certificate and once for the Token-Decryption certificate.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">remove-adfscertificate -certificatetype \"<em>certificate type<\/em>\" -Thumbprint \"<em>thumbprint<\/em>\"<\/code><\/pre>\n\n\n\n<p>Where&nbsp;<em>certificate type<\/em>&nbsp;is Token-Signing or Token-Encryption.<\/p>\n\n\n\n<p>You can use -urgent on the ADFS server to move the Secondary to the Primary <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Update-ADFSCertificate -CertificateType token-signing -urgent\nUpdate-ADFSCertificate -CertificateType token-decrypting -urgent<\/code><\/pre>\n\n\n\n<p>This occurs because CRM is still using the expired ADFS token certificates.<\/p>\n\n\n\n<p>on the CRM Server <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">iisreset<\/code><\/pre>\n\n\n\n<p> To resolve this Disable Claims-based Authentication and Internet-Facing deployment in CRM.<\/p>\n\n\n\n<p>Update the claims on the ADFS Server <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"167\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-14.png\" alt=\"\" class=\"wp-image-8835 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-14.png 720w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2025\/01\/image-14-300x70.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/figure>\n\n\n\n<p>Restart CRM Server<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When the ADFS Token-sgining and Token-Decrypting certificates in ADFS are automatically renewed, users in CRM might not be able to login. They receive HTTP 401 Unauthorized Access [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8518","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8518"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8518\/revisions"}],"predecessor-version":[{"id":8837,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8518\/revisions\/8837"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}