Closed mathias-nyman closed 1 year ago
The requests for accessReviews started returning an error:
Line | 116 | … $results = Invoke-MgGraphRequest -Method GET -Uri $uriQueryEndpointF … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | GET https://graph.microsoft.com/beta/accessReviews?$filter=(businessFlowTemplateId+eq+%27832169fe-e1b7-4ce9-98b6-6a8db52eec6b%27) HTTP/1.1 403 Forbidden Transfer-Encoding: chunked Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000 | request-id: ff479254-14a6-4c3c-9788-9cf650faedad client-request-id: 0caa3695-534d-4433-bb78-5a34fc5cd217 x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Sweden Central","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"GV2PEPF00000EB1"}} Date: Thu, | 17 Aug 2023 08:09:37 GMT Content-Type: application/json Content-Encoding: gzip {"error":{"code":"","message":"Attempted to perform an unauthorized | operation.","innerError":{"date":"2023-08-17T08:09:38","request-id":"ff479254-14a6-4c3c-9788-9cf650faedad","client-request-id":0caa3695-534d-4433-bb78-5a34fc5cd217"}}} 7fbc901b-efe1-4c72-8ae6-99cb80b582de
The reason seems to be that this endpoint is deprecated and a replacement exists:
This version of the access review API is deprecated and will stop returning data on May 19, 2023. Please use access reviews API.
https://learn.microsoft.com/en-us/graph/api/accessreview-list?view=graph-rest-beta&tabs=http#code-try-1
The requests for accessReviews started returning an error:
The reason seems to be that this endpoint is deprecated and a replacement exists:
https://learn.microsoft.com/en-us/graph/api/accessreview-list?view=graph-rest-beta&tabs=http#code-try-1