Extracting learning data, such as learner transcript reports, from Adobe Learning Manager (ALM) can be efficiently managed through ALM’s v2 API. This blog post will guide you through the process of using the Job API to pull data in CSV format, detailing the necessary steps from setting up authentication to generating and downloading the report.
Steps to Extract Learner Transcript Reports Using ALM v2 API
Step 1: Create Authentication
To execute the Job API from an external application/program/script, you need to authenticate your external system by creating an application in ALM.
- Register Application:
- Navigate to Integration Admin > Applications > Register.
- Register a new application to obtain the App ID and App Secret.
- Generate Refresh Token:
- Use the App ID and App Secret to generate a refresh token on ALM’s token generator page.
- Navigate to Integration Admin > Developer Resources > Access Tokens for Testing and Development.
- Generate Access Token:
- Use the following POST request to generate an access (bearer) token:
POST https://learningmanager.adobe.com/oauth/token/refresh?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&refresh_token=YOUR_REFRESH_TOKEN
- Replace
YOUR_APP_ID
,YOUR_APP_SECRET
, andYOUR_REFRESH_TOKEN
with the respective values obtained in the previous steps.
- Use the following POST request to generate an access (bearer) token:
Step 2: Execute the Job API
To generate the learner transcript report, you need to execute the Job API with the appropriate payload.
Try it in ALM swagger – https://learningmanager.adobe.com/docs/primeapi/v2/#!/job/post_jobs
- Define the Payload:
- Here’s a sample payload to generate the learner transcript report:
json
{
"data": {
"type": "job",
"attributes": {
"description": "description of your choice",
"jobType": "generateLearnerTranscript",
"payload": {
"fromDate": "2024-04-20T18:30:00.000Z",
"toDate": "2024-05-12T18:30:00.000Z",
"userGroups": 6339298,
"includeModuleLevelDetails": "true",
"includeDeletedLearners": "true",
"enrollmentStatus": "selectAll"
}
}
}
}
- Here’s a sample payload to generate the learner transcript report:
- Execute POST Request:
- Use the following endpoint to create the job:
POST /jobs
- Example request:
POST https://learningmanager.adobe.com/primeapi/v2/jobs
- Use the following endpoint to create the job:
Step 3: Get User Group ID
To include all learners in your account, you need the user group ID.
- Retrieve User Group ID:
- Use this endpoint to get the user group ID:
GET https://learningmanager.adobe.com/primeapi/v2/userGroups/search?nameStartsWith=All Learners
- Use this endpoint to get the user group ID:
Step 4: Retrieve the Job ID and Download the CSV
Once the job is successfully executed, ALM will provide a Job ID. Use this Job ID to fetch the download link.
- Fetch Job ID:
- On successful execution, you will receive a Job ID in the response.
- Download the CSV File:
- Use the following GET request with the Job ID to get the S3 URL for the CSV file:
GET /jobs/{Job_ID}
(note that it may take 2 to 10 mins for the system to generate the link due to data size)
- Use the following GET request with the Job ID to get the S3 URL for the CSV file:
- Example Request:
- Replace
{Job_ID}
with the actual Job ID received:GET https://learningmanager.adobe.com/primeapi/v2/jobs/{Job_ID}
- Replace
Additional Resources
For more detailed information and additional capabilities of the ALM v2 API, refer to the ALM Developer Manual.
Conclusion
By following these steps, you can efficiently extract learner transcript reports from Adobe Learning Manager using the Job API. This method ensures that you can automate and streamline the process of obtaining critical learning data, making it easier to manage and analyze your learners’ progress and performance.
For further assistance or any queries, feel free to refer to the detailed documentation provided by Adobe Learning Manager or contact their support team.
You must be logged in to post a comment.