Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Plugin-specific parameters for the Moodle Interface

Name

Value

SERVER_NAME

Database server name

DATABASE

Enter the database name used when installing Adonis Personnel Manager.

DAYSGAP

Enter a numeric value stating the number of days from today's date in which the system will detect planned activity.

DEBUGLOG

Enter a numeric value stating the number of log records to be displayed.

SERVERSERVICE_NAMEName of the URL

URL pointing to the Moodle Server

SERVICE_PSW

Password Name of the user external service used or authenticated to use the external serviceto integrate with Moodle. See Moodle configuration section Configuration below

SERVICE_URL

URL pointing to the Moodle Server

SERVICE_USER

User name of the user authenticated to use the external service

SERVICE_PSW

Name of Password of the user used or authenticated to use the external service used to integrate with Moodle. See Moodle Configuration configuration section below

XREF

Enter the Moodle plugin code defined in Adonis Personnel Manager. For more information, see Add Moodle Interface.

...

In Moodle, external services are a feature that allows integration with external applications or services, enabling them to interact with Moodle and access certain functionalities. The replicator parameter SERVICE refers to the external service short name.
To use external services in Moodle, administrators need to configure the service's settings, including authentication credentials, access permissions, and specific functions that can be accessed by the external application.

Steps:

Code Block
Create External Service
Add functions
Authorise User
Create Token
Expand
titleHow to create and external Service

Log in to Moodle as an administrator and click on the .
Goto: Site administration → Plugin → Webservices → External services.
//picture
Select create service
Add a new External service name and the short name “enrol_user“. Remember to add both fields otherwise, you will get the Error “Invalid token“Short name is a mandatory field and is the name used to call the service.

Note

Short name is not a mandatory field in Moode, if left blank the interface will not work.

Expand
titleHow to add functions to the External Service

The following functions need to be added to the external service.

Code Block
auth_userkey_request_login_url
core_completion_get_course_completion_status
core_course_get_courses
core_enrol_get_enrolled_users
core_enrol_unenrol_user_enrolment
core_user_create_users
core_user_get_users
core_user_get_users_by_field
core_user_update_users
core_webservice_get_site_info
enrol_manual_enrol_users
enrol_manual_unenrol_users

Goto:

...