Filtering out `MailboxNotEnabledForRESTAPI`

asked 2021-11-15T17:42:24.6+00:00
Brent Arias 11 Reputation points

I often receive a "mailbox not enabled" MailboxNotEnabledForRESTAPI because many users have not made their first/initial login attempt.

What filter can I apply when selecting users...to exclude all users who have not yet initialized their Exchange Online mailbox?

I see an AccountEnabled property I could filter on, except this property is read/write...which tells me it is not really what I'm looking for.

Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
676 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2022-02-11T19:11:45.107+00:00
    AtulThorat-MSFT 386 Reputation points

    Hi @Brent Arias ,

    Yes. we often receive a "mailbox not enabled" MailboxNotEnabledForRESTAPI because many users have not made their first/initial login attempt.

    Please refer below Microsoft article to get more details on this case.

    rest-api-is-not-yet-supported-for-this-mailbox-error

    Please refer below Microsoft article to get all details of "user resource type"

    user

    So accountEnabled property is of "Boolean" type and if it is true then account is enabled; otherwise, if false then account is disabled. This property is required when a user is created. It Returned only on $select and it supports $filter(eq, ne, not, and in).

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    No comments