ERROR
When inviting users to a group in ArcGIS Online, the following error message may be encountered:
"Could not invite user(s) to the group."

The following Esri Knowledge Base article outlines possible causes. While the error message is worded differently, the underlying reasons can be the same: Error during invite. Unable to invite user to the group. The user does not have the privileges needed to join the group
To identify the specific cause:
{
"error": {
"code": 400,
"messageCode": "COM_1043",
"message": "Unable to invite Public Account to a group owned by an organization.",
"details": []
}
}

If the error message found in the network traffic is "Unable to invite Public Account to a group owned by an organization" as above, create a new ArcGIS Online organizational account, or convert the existing public account to an organizational account.
Refer to the ArcGIS Online documentation: Join with an existing public account for more information.
Article ID: 000037268
Get help from ArcGIS experts
Start chatting now