How to filter content in views based on user id
You can do it by using these modules:


If you want to give permissions to node then you can use this module

Node Access 



  Nodeaccess is a Drupal access control module which provides view, edit
  and delete access to nodes. Users with the 'grant node permissions'
  permission will have a grant tab on node pages which allows them to
  grant access to that node by user or role. Administrators can set
  default access controls per content type, and also define which roles
  are available to grant permissions to on the node grants tab.



If you want to "assign" node to some user, you can use user reference field and then in view add filter for that field and make it filter by current user.


For user reference use this field

References


  There were a couple changes in the way 'References' views are handled
  ("referenceable nodes/users defined by a view"), which might require
  double-checking those existing on your site:
  
  
  The 'label' (node title or user name) is no longer automatically    added if not included in the view. If some of your 'References' views 
  currently do not include it, you might want to add it explicitly,
  else it will no longer appear in the widgets.
  The HTML generated by the view is no longer stripped out before being    handed to "checkboxes / radios" widgets, thus allowing
  advanced    formatting. You might want to check for Reference views
  having fields    configured to display "as links", since the (probably
  unwanted)     tags generated by Views are not removed anymore.