Facing an error using "core_user_create_user" APIs

Facing an error using "core_user_create_user" APIs

by vishwanath pal -
Number of replies: 0

Hello there,

I have installed Moodle and working great. Now I am trying to consume REST APIs, everything has been set-up, I have access token to access REST APIs and I have called "core_webservice_get_site_info" APIs using generated token and it is working great.

Now I am trying to consume "core_user_create_user" APIs to create a new user but this time I am getting the error below:

{
"exception": "webservice_access_exception",
"errorcode": "accessexception",
"message": "Access control exception"
}

I believe this is one of your an APIs error message which asks for "The web service account does not have the privilege to perform this
action. Contact your system administrator to request access."
Could you guide me step by step that how to set privilege to perform this action?

here is the APIs doc link which I have followed: http://www.refineddata.com/api/

If anything missing from my side please let me know.

Average of ratings: -