question

CasepointDeveloper-2078 avatar image
0 Votes"
CasepointDeveloper-2078 asked Danstan-MSFT edited

Facing an "Unauthorized - 401" issue in Graph API Explorer for eDiscovery beta API.


Hi,

I am facing an "Unauthorized - 401" issue in Graph API Explorer for eDiscovery beta API.


77570-ediscovery1.png


Before 1-2 months it was working fine and suddenly I have started getting this error.

Can someone look into this?

Thanks


microsoft-graph-explorer
ediscovery1.png (123.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Danstan-MSFT avatar image
1 Vote"
Danstan-MSFT answered Danstan-MSFT edited

There seems to be an issue within MS Graph Explorer such that it does not properly add the permissions eDiscovery.Read.All and eDiscovery.ReadWrite.All when requesting for token. I am able to get this working with the scopes using tokens generated for a APP using MSAL (not using GE).

The token that has these scopes can access the APIs you are trying to use, so I suggest you get a token from AAD using MSAL to use these APIs until the behavior with GE is gone. See screenshot.

78069-ediscovery-beta-apis-401.png



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I also just found out that while using Graph Explorer you can add the permissions eDiscovery.Read.All and eDiscovery.ReadWrite.All on the settings. See screenshot

78138-ediscovery-permissions.png


1 Vote 1 ·