-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSGraph permissions help #560
Comments
There might be a delay in the permissions being applied. #483 (comment) |
Thanks you @seanthegeek appreciate the response. |
Sharing my solution below before closing this issue in the hope it helps others. o356 = Microsoft Office 365 (business/paid for subscription) ======= o365 setup ===========
=========== o365 powershell =======
========== parsedmarc.ini working config: ========
Restart the parsedmarc services and check status using:
|
Hi
Would anyone please be able to help me find/work out which permissions are missing from the below setup in order for ParseDMARC to pull reports from a shared mailbox on MS office 365 (business/paid for) using MSGraph?
The shared mailbox has a valid license attached and I can logon to it via a browser. I can also see/read the dmarc reports in browser.
ParseDMARC is on the latest version 8.15.0.
Here are the parseDMARC config:
[general]
save_aggregate = True
save_forensic = True
[mailbox]
watch = True
delete = True
reports_folder = Inbox
batch_size = 1000
[msgraph]
enabled = True
user =
password =
mailbox =
auth_method = ClientSecret
tenant_id =
client_id =
client_secret =
I've created an Azure app + granted the following permissions:
I currently see the following error:
Sep 10 16:17:01 Server01 systemd[1]: Stopped parsedmarc mailbox watcher.
Sep 10 16:17:01 Server01 systemd[1]: Started parsedmarc mailbox watcher.
Sep 10 16:17:02 Server01 parsedmarc[56889]: ERROR:cli.py:1406:Mailbox Error
Sep 10 16:17:02 Server01 parsedmarc[56889]: Traceback (most recent call last):
Sep 10 16:17:02 Server01 parsedmarc[56889]: File "/opt/parsedmarc/venv/lib/python3.10/site-packages/parsedmarc/cli.py", line 1385, in _main
Sep 10 16:17:02 Server01 parsedmarc[56889]: reports = get_dmarc_reports_from_mailbox(
Sep 10 16:17:02 Server01 parsedmarc[56889]: File "/opt/parsedmarc/venv/lib/python3.10/site-packages/parsedmarc/init.py", line 1446, in get_dmarc_reports_from_mailbox
Sep 10 16:17:02 Server01 parsedmarc[56889]: connection.create_folder(aggregate_reports_folder)
Sep 10 16:17:02 Server01 parsedmarc[56889]: File "/opt/parsedmarc/venv/lib/python3.10/site-packages/parsedmarc/mail/graph.py", line 123, in create_folder
Sep 10 16:17:02 Server01 parsedmarc[56889]: parent_folder_id = self._find_folder_id_with_parent(
Sep 10 16:17:02 Server01 parsedmarc[56889]: File "/opt/parsedmarc/venv/lib/python3.10/site-packages/parsedmarc/mail/graph.py", line 245, in _find_folder_id_with_parent
Sep 10 16:17:02 Server01 parsedmarc[56889]: raise RuntimeWarning(f"Failed to list folders."
Sep 10 16:17:02 Server01 parsedmarc[56889]: RuntimeWarning: Failed to list folders.{'error': {'code': 'ErrorAccessDenied', 'message': 'Access is denied. Check credentials and try again.'}}
Sep 10 16:17:03 Server01 systemd[1]: parsedmarc.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 16:17:03 Server01 systemd[1]: parsedmarc.service: Failed with result 'exit-code'.
Thank you!
The text was updated successfully, but these errors were encountered: