- Learning and Development Questions and Answers
- How can I make imported self-paced learning private and define audiences using user groups?
How can I make imported self-paced learning private and define audiences using user groups?
Use a REST API to change self-paced learning already imported to Oracle Learning after adding or changing audience settings in the external content provider configurations.
-
Set the self-paced learning visibility to Private.
PATCH https://{{host}}/hcmRestApi/resources/latest/learningSelfPacedItems/<LI NUMBER> Headers: Effective-Of : RangeMode=UPDATE REST-Framework-Version : 9 { "learningItemVisibility":"PRIVATE" }
-
Associate a user group with the private self-paced learning.
-
Get the learning item ID from the browser URL when viewing the
learning.
For example, the learning item ID in this URL is 300100634594734: https://{host}/fscmUI/redwood/learning-catalog/main/learning-catalog-item-details?learningItemId=300100634594734
-
Get the user group ID from the browser URL when viewing the user group
details.
For example, the user group ID in this URL is 300100634594851: https://cptbochqy.fusionapps.ocs.oc-test.com/fscmUI/redwood/learning-resources/main/user-group-details?userGroupId=300100634594851
-
Associate the learning with the user group by posting to
/learningItemAudiences. If you get an error,
try /learningAudience instead.
POST https://{{host}}/hcmRestApi/resources/latest/learningItemAudiences Headers: Effective-Of : RangeMode=UPDATE REST-Framework-Version : 9 { "learningItemId": "300100634594734", "learningItemType": "ORA_ELEARNING", "sourceTypeId": 300100634594851, "sourceType": "ORA_LEARNING_ORGANIZATION" }
-
Get the learning item ID from the browser URL when viewing the
learning.