Enabling web services for external systems
An external system is an application that accesses Moodle and its data in one way or another. Eight steps have to be performed to complete the setup, which follows the workflow described on the web services overview screen:
- Create a specific user
Each application should have a separate user account. This way, you can control the capabilities each external system will use. Our user is aptly called webservice.
- Check user capability
Depending on the protocol you’ve selected, you must allow specific permissions for the user. You achieve this by creating a new role with any of the three capabilities, webservice/rest:use
, webservice/soap:use
, or webservice/xmlrpc:use
.
This role has to be assigned to the web service user(s) in the System context.
- Select a service
A service is a defined interface that an external application can connect to, represented by a set of functions (see step 4). Selecting...