You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Objective: To read the Security => Review => Quarantine list and filter out high-confidence phishing user requests that require administrator release.
C# code to retrieve error messages
Permissions are already granted: eDiscovery.Read.All、Mail.Send、User.Read、User.Read.All
How to test this on the graph-explorer webpage?
How to solve it? thanks
========================================
var tenantId = "";
var clientId = "";
var clientSecret = "**";
string[] scopes = { "https://graph.microsoft.com/.default" };
ClientSecretCredential credential = new ClientSecretCredential(tenantId, clientId, clientSecret);
var token = await credential.GetTokenAsync(new TokenRequestContext(new[] { "https://graph.microsoft.com/.default" }));
Console.WriteLine(token.Token); // Token successfully obtained
GraphServiceClient graphClient = new GraphServiceClient(credential, scopes);
var result = await graphClient.Security.Cases.EdiscoveryCases.GetAsync(); // err
==============================
Beta Was this translation helpful? Give feedback.
All reactions