Web services user permission stand off

Web services user permission stand off

by Ben Phee -
Number of replies: 0

Hi,

I have set up all necessary items to get my web service working which can create a user without issue using core_user_create_users.

I have referenced this site as well: http://www.rumours.co.nz/manuals/using_moodle_web_services.htm

So it works in that regard, however, the problem comes when I am trying to check if a user already exists or not with core_user_get_users_by_field and their email address, using the call below.

http://moodle.domain.com.au/webservice/rest/server.php?wstoken=token&wsfunction=core_user_get_users_by_field&field=email&values[0]=email@fakeemail.com.au

This call, with the proper info, only returns:

<RESPONSE>

<MULTIPLE>

</MULTIPLE>

</RESPONSE>

 

I have created the role for the user and assigned them to it.

I have tested the role with the necessary permissions, I have also tested it with all possible permissions allowed and the same thing happens.

 

Using the same call above, the only way I can find to get the users details in the response is if I make the user a site admin, which I would really like to avoid if possible.

 

So I am wondering what I have missed?

We are using Moodle 2.5.2

 

Any assistance or guidance as to what I am missing would be great.

 

Thanks

Ben

Average of ratings: -