How to get firstname in autocomplete when adding new members in og group? I have created the group in og.

When adding the user for the group, In autocomplete its been displaying the user's email ID.

function custom_form_alter($form,&amp;$form_state){ if($form['#id']== 'og-ui-add-users'){
     $form['og_user']['name']['#autocomplete_path'] = 'user/autocomplete';
}   


}

But I want to get the name instead of email ID.

I have tried to change the user/autocomplete in hook_form_alter,but its displaying email id only

Is there any way to get name instead of email ID ?

Tell me how to sort out this problem?
I didn't get a clear idea, anyway please Check This.