Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: REST Service Create User C# Example [Moodle 2.3.1]

$
0
0
by Rodrigo Bengoechea.  

Hello everyone, 


I'm using the posted code in order to run some tests to get the Moodle Web Services work. I've gone through this tutorial (https://docs.moodle.org/28/en/Using_web_services ) in order to get everything working but when I call the web services from my test app I get the following exception message:

{

"exception":"webservice_access_exception",

"errorcode":"accessexception",

"message":"Excepci\u00f3n al control de acceso",

"debuginfo":"Access to the function core_user_create_users() is not allowed. There could be multiple reasons for this:

1. The service linked to the user token does not contain the function.

2. The service is user-restricted and the user is not listed.

3. The service is IP-restricted and the user IP is not listed.

4. The service is time-restricted and the time has expired.

5. The token is time-restricted and the time has expired.

6. The service requires a specific capability which the user does not have.

7. The function is called with username\/password (no user token is sent) and none of the services has the function to allow the user. These settings can be found in Administration > Site administration\n                     > Plugins > Web services > External services and Manage tokens."

}


I've checked every suggestion showed in the message but still not getting it to work.


Can anybody help me? It would be really appreciated!


Thanks a lot in advance!

Regards,



Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>