Hi,
I have a flow setup in Power Automate to change my status in MS Teams to Offline after 6p. It worked fine until Sep 19th; I'm now getting a 401 Unauthorized error. At first, I thought maybe I just needed to refresh the connection for that action using my credentials, so I changed the connection. However, it still throws the same error. Following are the raw input and output. Any help in this regard would be highly appreciated.
Raw Input:
==============
{
"host": {
"connectionReferenceName": "shared_sharepointonline-1",
"operationId": "HttpRequest"
},
"parameters": {
"dataset": "https://presence.teams.microsoft.com\n",
"parameters/method": "PUT",
"parameters/uri": "/v1/me/forceavailability/",
"parameters/body": "{\n \"availability\": \"Offline\",\n \"activity\": \"OffWork\"\n}"
}
}
Raw Output:
==============
{
"statusCode": 401,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"Set-Cookie": "ARRAffinity=xxxxxxxxxxxxxxxxxxxxxxxxxx;Path=/;HttpOnly;Secure;Domain=xxxxxxxxxxxxxxxxxxxxxxxxxx-002.p.azurewebsites.net,ARRAffinitySameSite=xxxxxxxxxxxxxxxxxxxxxxxxxx;Path=/;HttpOnly;SameSite=None;Secure;Domain=xxxxxxxxxxxxxxxxxxxxxxxxxx-002.p.azurewebsites.net",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-request-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"x-ms-tenant-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"Date": "Thu, 03 Oct 2024 16:15:36 GMT",
"Content-Length": "187",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 401,
"message": "clientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxx",
"source": "https://presence.teams.microsoft.com/v1/me/forceavailability/",
"errors": []
}
}
Thanks a lot!
Kashif.