Technical Tip: Intune polling is producing 401 errors even if the Access key and Refresh token are correct
| Description | This article shows how to troubleshoot and resolve a 401 error when the Refresh token and Access Key are known to working otherwise. |
| Scope | |
| Solution | Run the following debugs in the CLI:
# nacdebug -name MSInTuneServer true
And
# nacdebug -name MdmServer true
2) Run manual MDM poll for Intune. Network -> Service Connectors and select the Intune Connector.
3) Open the CLI as root and type:
# logs # less output.master
Type '/' to do a search and look for MSInTuneServer FINER (this will be case-sensitive).
If the 'Authorization: Bearer' line has a token listed but you still get in the lines underneath:
Links: |

