title: Google drive api read permission V3
body: <p>Hello I am trying to write a code (c#) which will give public read permission to file, here is the code:</p>
  
  <pre><code>private static Permission MakeFilePublic(string fileId, DriveService driveService)
      {
          var request = driveService.Permissions.List(fileId);
          var res = driveService.Permissions.List(fileId).Execute(); 
          var hasReadPermission = res.Permissions.Any(p =&gt; p.Role == "reader");
          if (hasReadPermission==false)
          {
              var per = CreatePermission(driveService, fileId, "myemail@gmail.com", "anyone", "reader");
              return per;
  
          }
          return null;
      }
  
  public static Permission CreatePermission(DriveService service, String fileId, String userEmailAddress, String type, String role)
  {
      Permission newPermission = new Permission();
      newPermission.EmailAddress = userEmailAddress;
      newPermission.Type = type;
      newPermission.Role = role;
      try
      {
          var res =  service.Permissions.Create(newPermission, fileId).Execute();
          return res;
      }
      catch (Exception e)
      {
          Console.WriteLine("An error occurred: " + e.Message);
      }
      return null;
  }
  </code></pre>
  
  <p>My problem is that I get an error </p>
  
  <blockquote>
    <p>The specified emailAddress is invalid or not applicable for the given permission type.</p>
  </blockquote>
  
  <p>I tried to enter empty email, my email, nothing worked. 
  anyone know how to solve it, and make the google document file share as public
  Thank you!</p>