-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
exchangelib.errors.ErrorAccessDenied: Not allowed to access Non IPM folder. #1290
Comments
We are facing this same issue on Exchange 5.2.0 with Python 3.11 It looks like a Microsoft 365 issue, rather than an issue with ExchangeLib |
Same issue here. Python 3.10 |
In our case, we have detected this error appears when moving a message to a different folder: dst_folder = account.inbox / "foldername"
message.move(dst_folder) This comment in issue 1288 suggests changing changing the single forward slash We have tried this and it worked, so the code that caused the error now looks like this and it works: dst_folder = account.inbox // "foldername" # Note the double slash in this line
message.move(dst_folder) |
This solution worked for me. Thank you! |
…andle as exception objects. Refs #1290
Here's a possible fix for the |
…andle as exception objects. Refs ecederstrand#1290
Thanks a lot Erik, that has worked for us! |
Works for us too, we use the getFolderByName() function. Thanks! |
…andle as exception objects. Refs ecederstrand#1290
When will this update be available from pypi? |
Hi need help for ErrorAccessDenied: Not allowed to access Non IPM folder tried double slash and also folder Collection. still getting this error "Unable to connect to exchange account. System will try to connect in the next run. |
We are facing the same issue. It would be great to release a new version if possible. |
try like op.account.root // 'Top of Information Store' // 'Inbox' // to_move_folder) Use double slash everywhere. |
Good morning,
Thanks for your response my code is not using FolderCollection do I have to use FolderCollection and double slash to work.
This fix is very important for our application since all Production and Non Production applications got halted due to ErrorAccessDenied: Not allowed to access Non IPM folder issue.
Thanks,
Sree Sonduri| Lead Software Engineer
9399 West Higgins Road, Suite 200 | Rosemont, IL 60018
O 847-268-5364 | M 704-689-8012
***@***.******@***.***>
[signature_668366244]<https://www.usfoods.com/>
[signature_2356035635]
[signature_1002693029] [signature_1002693029]
From: Pradeep Kumar Baskar ***@***.***>
Date: Friday, April 5, 2024 at 5:44 AM
To: ecederstrand/exchangelib ***@***.***>
Cc: Sonduri, Sree ***@***.***>, Comment ***@***.***>
Subject: Re: [ecederstrand/exchangelib] exchangelib.errors.ErrorAccessDenied: Not allowed to access Non IPM folder. (Issue #1290)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Caution: External Email - if you think this email is suspicious, please report it by clicking the Phish Alert button in Outlook.
try like op.account.root // 'Top of Information Store' // 'Inbox' // to_move_folder)
Use double slash everywhere.
—
Reply to this email directly, view it on GitHub<#1290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHIQEAN3J3RMFG2OKZX4BJTY3Z6BXAVCNFSM6AAAAABFWVK4DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZGQ3TGMJZGI>.
You are receiving this because you commented.Message ID: ***@***.***>
This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to US Foods. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments.
|
Yes try it, it worked for me. I had a similar issue this morning. |
I tried but not able to get to subfolders. While debugging subfolder is null.
Thanks,
Sree Sonduri| Lead Software Engineer
9399 West Higgins Road, Suite 200 | Rosemont, IL 60018
O 847-268-5364 | M 704-689-8012
***@***.******@***.***>
[signature_668366244]<https://www.usfoods.com/>
[signature_2356035635]
[signature_1002693029] [signature_1002693029]
From: Pradeep Kumar Baskar ***@***.***>
Date: Friday, April 5, 2024 at 9:36 AM
To: ecederstrand/exchangelib ***@***.***>
Cc: Sonduri, Sree ***@***.***>, Comment ***@***.***>
Subject: Re: [ecederstrand/exchangelib] exchangelib.errors.ErrorAccessDenied: Not allowed to access Non IPM folder. (Issue #1290)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Caution: External Email - if you think this email is suspicious, please report it by clicking the Phish Alert button in Outlook.
Yes try it, it worked for me. I had a similar issue this morning.
—
Reply to this email directly, view it on GitHub<#1290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHIQEAOGV3MAJWDWAA5OZEDY32ZF5AVCNFSM6AAAAABFWVK4DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZHE3DEOBQGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to US Foods. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments.
|
Tried the fix mentioned above in get_folder.py, but get this error now: "name 'create_shape_element' is not defined" I am doing this for subfolders: folder = account.inbox |
What if you are trying to traverse all subfolders and nested folders within Inbox/[SubFolders]? |
Below is my code
I get error as "No subfolder with name 'cost_auto_processed'" Please let me know what could be the fix to get to to sub folders |
Below is my code
inbox_folders = FolderCollection(account=account, folders=[account.inbox])
for folder in inbox_folders.folders:
print(f'folder name::: {folder.name}')
processed_folder = account.inbox // 'cost_auto_processed'
I get error as "No subfolder with name 'cost_auto_processed'"
Please let me know the fix to get to sub folders
Really Appreciate
Thanks
From: devseckoderz ***@***.***>
Date: Friday, April 5, 2024 at 10:59 AM
To: ecederstrand/exchangelib ***@***.***>
Cc: Sonduri, Sree ***@***.***>, Comment ***@***.***>
Subject: Re: [ecederstrand/exchangelib] exchangelib.errors.ErrorAccessDenied: Not allowed to access Non IPM folder. (Issue #1290)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Caution: External Email - if you think this email is suspicious, please report it by clicking the Phish Alert button in Outlook.
In our case, we have detected this error appears when moving a message to a different folder:
dst_folder = account.inbox / "foldername"
message.move(dst_folder)
This comment in issue 1288<#1288 (comment)> suggests changing changing the single forward slash / to a double forward slash // for building folder paths.
We have tried this and it worked, so the code that caused the error now looks like this and it works:
dst_folder = account.inbox // "foldername" # Note the double slash in this line
message.move(dst_folder)
This solution worked for me. Thank you!
What if you are trying to traverse all subfolders and nested folders within Inbox/[SubFolders]?
—
Reply to this email directly, view it on GitHub<#1290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHIQEAIL6PYZJ74GUS3E4T3Y33C6XAVCNFSM6AAAAABFWVK4DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGE3DGMRTGY>.
You are receiving this because you commented.Message ID: ***@***.***>
This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to US Foods. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments.
|
Is it possible that there are now also problems when creating?
|
The commit that closed this issue should fix the "ErrorAccessDenied: Not allowed to access Non IPM folder" issue for everyone. Please install from that commit until I can get a new version on PyPI. Only report here if that commit did not solve this specific issue for you. |
v5.2.1 is out now |
@ecederstrand Since the 5.2.1, this error has been replaced by:
I don't understand why. |
That's very likely a different error. Please open a new issue. |
Exchange lib is saying access denied with trying to access account.tois.children
I am using ExchangeLibHelper to fetch all the items from the respective folders from Top of Information Store Folder. '
It was working till yesterday.
To Reproduce
Expected behavior
I expected that it will traverse each folder from the folder collection object and give me the folder name
Log output
Exception stack trace
Additional context
Python -- 3.9
ExchangeLib -- 4.6.1
The text was updated successfully, but these errors were encountered: