Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Azure REST API - PIM privilegedOperationEvents error - Status Code 500 #845

@shailesh-yadav-moe

Description

@shailesh-yadav-moe

Describe the bug

I am using REST API to get list of all privileged operations for all the users. I followed following documentation:
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/privilegedoperationevent_list

Everything was fine until 6 Nov 2018 10 PM NZST, but now it's giving me following error in Response body:


{
"error": {
"code": "UnknownError",
"message": "{"message":"An error has occurred."}",
"innerError": {
"request-id": "dc8e93ca-e46d-4bdc-a6b8-7bf6cdc11fed",
"date": "2018-11-07T19:58:47"
}
}
}

I also checked it in Graph Explorer to verify, but same error there too
My access token generated is fine, because it works with the other endpoints of v1

To Reproduce

Steps to reproduce the behavior:

  1. Go to Graph Explorer - https://developer.microsoft.com/en-us/graph/graph-explorer
  2. Login using a user which is registered for PIM.
  3. Make a new request to Graph API by choosing "GET" in request type and selecting "beta" in version.
  4. Paste this in the request URL "https://graph.microsoft.com/beta/privilegedOperationEvents", and click "Run Query"
  5. See error in the "Response Preview" in the bottom with Error Code = "Failure - Status Code 500

Expected behavior

I Expect JSON like following:

HTTP/1.1 200 OK
Content-type: application/json
Content-length: 547

{
"value": [
{
"id": "201707240003469369",
"userId": "2cf9eef8-bc67-4aa4-bb65-75cc9e5c3f80",
"userName": "admin1",
"userMail": "admin1@contoso.onmicrosoft.com",
"roleId": "9360feb5-f418-4baa-8175-e2a00bac4301",
"roleName": "Directory Writers",
"expirationDateTime": "0001-01-01T00:00:00Z",
"creationDateTime": "2017-07-24T18:32:38.7589078Z",
"requestorId": "0f693614-c255-4cf5-92fa-74e770c656d8",
"requestorName": "admin",
"tenantId": "ef73ae8b-cc96-4325-9bd1-dc82594b0b40",
"requestType": "Assign",
"additionalInformation": null,
"referenceKey": null,
"referenceSystem": null
},
{
"id": "201707240003469372",
"userId": "2cf9eef8-bc67-4aa4-bb65-75cc9e5c3f80",
"userName": "admin",
"userMail": "admin1@contoso.onmicrosoft.com",
"roleId": "95e79109-95c0-4d8e-aee3-d01accf2d47b",
"roleName": "Guest Inviter",
"expirationDateTime": "0001-01-01T00:00:00Z",
"creationDateTime": "2017-07-24T18:33:00.7607701Z",
"requestorId": "0f693614-c255-4cf5-92fa-74e770c656d8",
"requestorName": "admin",
"tenantId": "ef73ae8b-cc96-4325-9bd1-dc82594b0b40",
"requestType": "Assign",
"additionalInformation": null,
"referenceKey": null,
"referenceSystem": null
}
]
}

Screenshots

image

Desktop (please complete the following information):

  • OS: Linux Centos7
  • Language: Go
  • oauth2: golang.org/x/oauth2
  • Browser: Chrome, IE, Firefox
  • Version: Chrome version Version 68.0.3440.84 (Official Build) (64-bit)

pim rest api error

Metadata

Metadata

Assignees

Labels

questionUser asking for informationresolvedWork is done!

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions