When attempting to export data using the Analysis widget in Portal for ArcGIS Web AppBuilder, the following generic error occurs:
Error: Your user role doesn't include the create, update and delete content privilege.
The error is caused by the fact that when the task is executed, Server sends a request to Portal's self page. This request must include a token so that the self page response includes information about the active user's privileges. When SpatialAnalysis tools are shared to Everyone, this request is sent without a token, which causes the response to leave out information on the current user. Therefore, this issue occurs when there is no token generated or passed by ArcGIS Server due to anonymous access.
To resolve this issue, follow the instructions provided below.