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
- Generate a user type token.
- Call the API to get Class details
- You will receive the error:
- Code: 500
- 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