12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.24k stars 559 forks source link

added AuditLog.Read.All graph scope #109

Closed masyanru closed 2 months ago

masyanru commented 2 months ago

otherwise you gonna get Calling principal does not have required MSGraph permissions AuditLog.Read.All Status: 403 (Forbidden)

12Knocksinna commented 2 months ago

You're right, so I added the permission. I forgot that the auditlog.read.all permission is needed to access the signin activity data for a user account. I also made some other changes, so this pull request is declined because of those changes.