It is sometimes necessary that users have to access web services directly instead of applications, for example, a developer who needs to execute test runs against the system. The process is a subset of steps already covered in the previous section and follows Users as clients with token section on the web services overview screen:
Select a service.
Add functions.
Check the capability of the users. In addition to the protocol use capabilities, the users have to have the moodle/webservice:createtoken URL allowed.