SAP Knowledge Base Article - Public

3460876 - 'Check Authorization Restriction for the User' Error Message When Running OData for Custom Business Object

Symptom

You can see following error when trying to run an ODATA created for a Custom Business Object created from SAP Cloud Applications Studio (SDK).

  • Not Authorized
  • Check Authorization Restriction for the User

Environment

  • SAP Cloud for Customer
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Go to Administration work center.
  2. Go to OData Service Explorer.
  3. Select Custom OData Services.
  4. Click on Test.
  5. Insert URL.
  6. Click on Test.
  7. You can see an error.

Cause

These errors might happen when you have an Original and Patch solution into your system and you have created OData Service by using solution which is not activated (e.g. you have created OData by pointing to work center view of Original solution and then you have enabled Patch solution). Such mismatch cannot be interpreted and the system says user does not have proper assignment. 

Resolution

You need to ensure you have selected PDI Work Center of Enabled solution within OData Service Explorer. You may follow these steps:

  1. Go to Administration work center.
  2. Go to OData Service Explorer.
  3. Select Custom OData Services.
  4. Click to Edit.
  5. On Work Center View field, please ensure you have selected Work Center View from Enabled Solution.

By ensuring you have selected work center view from solution which is enabled into your tenant, you should not face those issues when running OData.

Keywords

odata, error, PDI, custom business object, service explorer, Not Authorized, Check Authorization Restriction for the User , KBA , LOD-CRM-INT-API , OData API (C4C Only) , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , How To

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions