Hello @wasef201
Sorry for the late answer. This is not UM issue, this is the WordPress restrictions.
- Make sure you are authenticated and your users have the
list_users capability.
- By default, only users who have published posts are returned by the request. To disable this, you can remove has_published_posts from the query args, please see the hook:
add_filter('rest_user_query', 'remove_has_published_posts_from_api_user_query', 10, 2);
function remove_has_published_posts_from_api_user_query($prepared_args, $request)
{
unset($prepared_args['has_published_posts']);
return $prepared_args;
}
Thank you.
Hi @wasef201
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards