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
- Access the OData API: myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ActivityCollection?$top=1, where xxxxxx represents the tenant number.
- 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.
- Go to Administrator > General Settings > Business Roles.
- Open the affected business role.
- Go to the tab "Work Center and View Assignments".
- 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