microsoftgraph / microsoft-graph-explorer-v4

React/Redux version of Graph Explorer used to learn the Microsoft Graph Api
https://developer.microsoft.com/graph/graph-explorer
MIT License
202 stars 84 forks source link

Calling principal does not have required MSGraph permissions AuditLog.Read.All #3165

Open mlakas01 opened 1 month ago

mlakas01 commented 1 month ago

Describe the bug I am running an API using azure's API-driven provisioning to on-premises Active Directory. After running the API using curl and verifying the user has been created in on premise AD, I want to read the api call's response using MS Graph.

Once I run the query such as: https://graph.microsoft.com/v1.0/auditLogs/provisioning?$filter=(contains(changeId,'d93a226c-4cea-43f5-ae6f-b40a1e1e5973')%20and%20(jobId%20eq%20'API2AD.42bee3df98534f9ab52933f3156060a0.285a406e-bc9a-4f37-b7f9-91bc3b65c333'))

It shows the below error "error": { "code": "Authentication_MSGraphPermissionMissing", "message": "Calling principal does not have required MSGraph permissions AuditLog.Read.All", "innerError": {

I then Consent to AuditLog.Read.All permission and request Admin to provide this access,

Graph Explorer access request approved Your request has been approved. Details of your request are below.

WHAT ARE THE ROLES THAT ARE REQUIRED. This will help request exactly what's needed.

Screenshots Screenshot 2024-05-31 121719

Desktop

musale commented 1 month ago

@mlakas01 what is the issue here?