UserHasNoMailboxAndNoLicenseAssignedError for previously working non-user unlicensed account

Weber Ting 21 Reputation points
2022-10-27T23:34:15.757+00:00

Hi,

I've recently encountered an issue where our team's non-user email account no longer has access to a group email.

We had this non-user email set up so that we didn't need to compromise any individual's email credentials to access this group email account, and so that these credentials could be used with a python library (exchangelib) to access and download attachments programmatically.

The error from exchangelib is:

Invalid credentials for https://outlook.office365.com/EWS/Exchange.asmx

When I went tried to log in to the account to see if it required a password reset or something, I got:

UserHasNoMailboxAndNoLicenseAssignedError

Just wanted to confirm if the issue was the lack of licensing, and that Outlook has recently started to enforce a license, even in applications where there is no real user tied to the account and it is just programmatic access to a group email account. We're happy to pay for the license if that's all it takes to get this account back up and running, but would like to avoid paying for it if this isn't the source of the issue.

Thanks in advance.

Outlook | Windows | Classic Outlook for Windows | For business
{count} votes

Accepted answer
  1. Vasil Michev 119.8K Reputation points MVP Volunteer Moderator
    2022-10-28T06:31:30.743+00:00

    If you are logging directly to a mailbox, it does require a license, even if you create it as a shared mailbox. You can however access such mailboxes by means of Full access permissions, without needing to license them. For programmatic access, EWS impersonation will work fine.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.