How to use in a view an argument like gids[0]=
Try Views Arguments Extras that lets you set URL params (gid[0], in this case) as arguments. 
You can also "push" arguments to the View at the User-Reference field's settings page. You just need to return the URL param to the View.
You must configure the View accordingly. 

return $_GET['gid[0]'];