SAP Knowledge Base Article - Public

2663104 - OData API Error - "User does not have access to requested scheduled offering."

Symptom

You are making the API call to get Class details:

Example:

GET /learning/odatav4/public/user/scheduledoffering-service /v1/ScheduledOfferings(7546)

However, an error message is returning:

  • "User does not have access to requested scheduled offering."

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Learning

Reproducing the Issue

  1. Generate a user type token.
  2. Call the API to get Class details
  3. You will receive the error:
    1. Code: 500
    2. Message: "User does not have access to requested scheduled offering.".

Cause

The user who is making the call does not have access to the library which the Class is associated with.

Resolution

  • You need to give access to the library for that user for the API call to get the Class details.
  • If the user can't see the Class details in LMS, he won't be able to see the details via API calls.

Keywords

api, odata, Class, User does not have access to requested scheduled offering, error.public.rest.scheduled.offering.noaccess,  sf, success factors, LMS , KBA , LOD-SF-LMS-ODA , Web Services OData , LOD-SF-LMS-SCH , Class - Scheduled Offerings , Problem

Product

SAP SuccessFactors Learning all versions