Forum Discussion

EntilZha's avatar
EntilZha
Iron Contributor
Jun 24, 2021

Variable in Graph Request Body (PowerShell)

Working off the following URL: https://docs.microsoft.com/en-us/graph/api/passwordauthenticationmethod-resetpassword?view=graph-rest-beta&tabs=http     When I execute the following command in my P...
  • EntilZha's avatar
    EntilZha
    Jun 24, 2021
    SOLUTION: I had to add " | ConvertTo-Json" at the end Request Body
    $PWCBody = @{
    newPassword = $password
    forceChangePasswordNextSignIn = $true
    } | ConvertTo-Json

Share