Local Web Service

Local Web Service

by Andy Byers -
Number of replies: 2

I've created a local web service based on core_enrol_get_enrolled_users. It works almost perfectly, for some reason the Username field shows up as:

<KEY name="username">

      <VALUE null="null"/>

</KEY>

This is a REST request, on Moodle 2.3. I wondered if I had just missed something but if I use the token to call core_enrol_get_enrolled_users it does the same thing. Is this a permissions problem? Maybe my WSuser isnt' allowed to view usernames?

Thanks for any help.

Average of ratings: -
In reply to Andy Byers

Re: Local Web Service

by Andy Byers -

If I grant the WSUSER account site admin priveleges this starts working, take it away and it shows the above. Not sure what permission I'm missing because the user has all the perms required to run the web service (and there are no permission errors during run).

In reply to Andy Byers

Re: Local Web Service

by James Ballard -

Having the exact same issue with the same workaround. 

This is caused by a permissions check within the Web Service call that never appears to return true for an external web service user.

Have logged as MDL-47783

Yours

James