Using Connect Enterprise Web Services |
|||
| Training > Enroll one user | |||
To give users access to training, Adobe recommends that you enroll them in courses. This gives the users appropriate permission to launch and complete the course, and it gives you usage tracking and access to various report actions.
Courses differ from content. Courses are resumable and offer server-side review mode (for detailed information, see Adobe Connect Enterprise User Guide).
Your application might allow users to self-enroll in courses, which involves calling permissions-update to enroll one user at a time. You may also want to write a workflow, which is a sequence of API calls, that creates a new user and enrolls the user in a course.
Enrolling users in training using the XML API (specifically, a call to permissions-update) does not send a notification. To send enrollment notifications, use Enterprise Manager to enroll users.
sco-id of the course (see "Find the sco-id of a course or curriculum").principal-id of the user (see "Get the principal-id of the current user").permissions-update. Use the course sco-id as the acl-id, with a permission-id of view:
https://example.com/api/xml?action=permissions-update
&acl-id=2007035246&principal-id=2006258745&permission-id=view
https://example.com/api/xml?action=report-my-training
row elements in the response for values you want to display:
<row sco-id="2007035246" type="content" icon="course"
permission-id="view">
<name>Java 101</name>
<url>example.com/java101/</url>
<date-created>2006-07-20T17:21:11.940-07:00</date-created>
<date-modified>2006-07-20T17:21:38.860-07:00</date-modified>
<date-begin>2006-07-20T17:15:00.000-07:00</date-begin>
<url-path>/java101/</url-path>
<expired>false</expired>
<completed>false</completed>
</row>
https://example.com/api/xml?action=principal-update&first-name=jazz
&last-name=doe&login=jazz@doe.com&password=hello&type=user
&send-email=true&has-children=0&email=jazz@doe.com
To send the e-mail, make sure send-email=true.
https://example.com/api/xml?action=login&login=jazz@doe.com
&password=hello&session=breezma6zor9rdfps8h6a
See "Log in from an application" for other ways to call login.
is-member=true to add the user to the group:
https://example.com/api/xml?action=group-membership-update
&group-id=4930296&principal-id=2006258745&is-member=true
https://example.com/api/xml?action=permissions-update
&acl-id=2006745669&principal-id=2007124930&permission-id=view
Use a permission-id of view.
https://example.com/api/xml?action=report-my-training
row elements in the response for values you want to display:
<row sco-id="2006745669" type="curriculum" icon="curriculum"
permission-id="view">
<name>A Day in the Life</name>
<url>example.com/day/</url>
<date-created>2006-06-12T14:47:59.903-07:00</date-created>
<date-modified>2006-06-12T14:47:59.903-07:00</date-modified>
<date-begin>2006-06-12T14:45:00.000-07:00</date-begin>
<url-path>/day/</url-path>
<expired>false</expired>
<completed>false</completed>
</row>
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/03b_tra6.htm