Hello poovarasan d,
Thanks for reaching out!
This error message "CompactToken parsing failed with error code: 80049217" generally occurs when the token used is invalid.
When we try to generate Access Token from https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
, we would get JSON object contains some properties. We just need the value in access_token key.
And when using the token, the Authorization header should be Bearer <access_token value>
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".