cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting multiple user data through learning Odata API in SuccessFactors

0 Likes
626

Hi Guys,

We are using the /learning/oauth-api/rest/v1/token POST call to generate the auth token for testing various Learning APIs like LearningHistory, LearningItemDetails, etc.

The body we are using is:

{ "grant_type":"client_credentials",
"scope":{
"userId":"abc",
"companyId":"xyz",
"userType":"user",
"resourceType":"learning_public_api"
}
}
With this we are able to retrieve the LearningHistory or LearningItemDetails of that particular user whose userId we have added in the body.

Our requirement is to retrieve the learningHistory or LearningItemDetails of the entire user Database in one API call, rather than do one call per user.

I had a few questions regarding the above:
  1. Is this feasible?
  2. We changed the userType to 'admin' and generated the token, but that started throwing an error in the learningHistory API which read "ERROR: User ID cannot be null\n". Needed to understand why this is happening?

Any help would be much appreciated!

Thanks,
Anirudh S

Accepted Solutions (0)

Answers (0)