SAP Knowledge Base Article - Public

3416303 - Error "Not Authorized: Check Authorization Restriction for the User" When Querying Activity OData Collection

Symptom

You receive the error "Not Authorized: Check Authorization Restriction for the User" when trying to retrieve data from Activity collection via OData services.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Access the OData API: myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ActivityCollection?$top=1, where xxxxxx represents the tenant number.
  2. Receive the error message "Not Authorized: Check Authorization Restriction for the User"

Cause

Activity collection contains several types of activities such as appointments, chats, memos, emails, etc. Among them, the work center view of memos is required to access the activity collection.

Resolution

Please assign the work center view "Memo" to the affected users by following the steps below.

  1. Go to Administrator > General Settings > Business Roles.
  2. Open the affected business role.
  3. Go to the tab "Work Center and View Assignments".
  4. Make sure that the work center ID COD_MEMO_WCVIEW is checked.

See Also

2683523  - Error "Not Authorized: Check Authorization Restriction for the User" When Querying Employee OData Collection

Keywords

not authorized; OData collection; authorization; Activity collection , KBA , LOD-LE-AM , Activity Management , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer core applications all versions