diff --git a/lib/db/services.php b/lib/db/services.php
index <HASH>..<HASH> 100644
--- a/lib/db/services.php
+++ b/lib/db/services.php
@@ -126,7 +126,7 @@ $functions = array(
         'classpath'   => 'user/externallib.php',
         'description' => 'Get users by id.',
         'type'        => 'read',
-        'capabilities'=> 'moodle/user:viewdetails',
+        'capabilities'=> 'moodle/user:viewalldetails',
     ),
 
     'moodle_user_delete_users' => array(
MDL-<I> fix capability name typo in the description of the web service function moodle_user_get_users_by_id