Web Service error issue for non admin user

Web Service error issue for non admin user

by Ade Oduye -
Number of replies: 0

I'm learning about web services and I've setup a user with the necessary tokens and permissions to create a user with the moodle_user_create_users function.

My issue is that the testclient.php script returns the following error:

http://x.x.x.x/moodle/webservice/xmlrpc/server.php?wstoken=e7e25ca0c767a66b42d225c9979c8e9f
exception 'Zend_XmlRpc_Client_FaultException' with message 'Access control exception | DEBUG INFO: You are not allowed to use the {$a} protocol (missing capability: webservice/xmlrpc:use) | ERRORCODE: accessexception' in /var/www/moodle/lib/zend/Zend/XmlRpc/Client.php:370
Stack trace:
#0 /var/www/moodle/webservice/xmlrpc/locallib.php(134): Zend_XmlRpc_Client->call('moodle_user_cre...', Array)
#1 /var/www/moodle/admin/webservice/testclient.php(154): webservice_xmlrpc_test_client->simpletest('http://x.x.x...', 'moodle_user_cre...', Array)
#2 {main}

The system only complains when using the token for the service user I created. The test works when I use my admin user. For the service user, there are no complaints about insufficient permissions.

I'm not really sure what I'm dealing with here, being a newbie.

I would appreciate any helpful input.

PS:

What is the service function to use to allow users to login to moodle from a different opensource system?

Average of ratings: -