title: How to hide webpart in sharepoint only for specific user or case
body: <p>I have PublishingLayoutPage and depends on query params i should hide few webparts.</p>
  
  <p>But i dont now how to do this. Because if i understand problem correctly
  SPLimitedWebPartManager will hide webpart for all users!</p>
  
  <pre><code>            using (SPLimitedWebPartManager mgr = file.GetLimitedWebPartManager(PersonalizationScope.Shared))
                          {
                              try
                              {
                                  SPLimitedWebPartCollection webparts = mgr.WebParts;
                                  foreach (System.Web.UI.WebControls.WebParts.WebPart wp in webparts)
                                  {
                                      if (wp is MyWebpart &amp;&amp; !isShowWebpart)
                                      {
  wp.Hidden=true;
                                          mgr.SaveChanges(wp );
                                      }
                                  }
  </code></pre>
  
  <p>How to hide webpart and doesnot allow to render content only for specific case on page?</p>