Executing the Azure Active Directory Read Group card fails with a "404 Not Found" error and the following error message for a known valid group ID:
{
"code": "MailboxNotEnabledForRESTAPI",
"message": "The mailbox is either inactive, soft-deleted, or is hosted on-premise."
}
When using Graph Explorer or another API client, for example, Postman, to read the group by calling the https://graph.microsoft.com/v1.0/groups/{group-id} Graph API, the request is successful. But when executing the Read Group card for the same group, the 404 error occurs.
- Okta Workfows
- Azure Active Directory connector Read Group card
This error can occur when selecting output attributes on the Read Group card that do not apply to the type of group being retrieved. Specifically, attempting to return any of the following outputs for a Security, Distribution, or Mail-enabled security group will result in this error, but will work for a Microsoft 365 group:
- Allow External Senders
- Auto-Subscribe new members
- Is Subscribed by Mail
- Unseen Count
Unselect the attributes referenced above from the Outputs on the Read Group card:
- Click the cogwheel icon in the lower right-hand corner of the card.
- Select Choose fields.
- Uncheck the following attributes and click the Save button.
