Invoke-RestMethod : {“error”:{“code”:”InvalidAuthenticationTokenTenant”,”message”:”The access token is from the wrong issuer

A little bit shorter this time…. If you retrieved to many AccessTokens geholt and are trying to make a REST Call, this might happen: Invoke-RestMethod : {“error”:{“code”:”InvalidAuthenticationTokenTenant”,”message”:”The access token is from the wrong issuer You’ve got too many tokens, and PowerShell doesn’t know which one to use. Which we can see like this: The easiest Read more about Invoke-RestMethod : {“error”:{“code”:”InvalidAuthenticationTokenTenant”,”message”:”The access token is from the wrong issuer[…]

PowerShell and REST API: Part 1

It took me quite a while figuring this one out and understanding it. I hope this article helps you save some time. So you want to “automate stuff” with PowerShell via REST API, without a user account? Here’s your tutorial. Remark: In order to do anything, we still need to authenticate somehow… This is done Read more about PowerShell and REST API: Part 1[…]