Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8485091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:32:49+00:00 2026-06-10T20:32:49+00:00

I want to share a document using the Goole Drive Api. Once I get

  • 0

I want to share a document using the Goole Drive Api. Once I get a list of documents I don’t know how to share a document with one or more users.

EDIT:

 Dim files As FileList = request.Fetch()
 Dim oPermission As New Google.Apis.Drive.v2.Data.Permission
 oPermission.Role = "reader"
 oPermission.Type = "user"
 oPermission.Value = "something@gmail.com"
 Dim oPermissionResource As New Google.Apis.Drive.v2.PermissionsResource(service, auth)

     For Each oFile As Google.Apis.Drive.v2.Data.File In files.Items

            service.Permissions.Insert(oPermission, oFile.Id).Fetch()
     Next

As @Ramhound pointed I was going the right way, I changed the code as in the example provided by @Ali Afshar. Now I’m getting an error:

Google.Apis.Requests.RequestError
Internal Error [500]
Errors [
    Message[Internal Error] Location[ - ] Reason[internalError] Domain[global]
]

EDIT 2:

The error occurs when I set the permission role as owner. If i use other roles like reader, writer. The example works fine.

 oPermission.Role = "owner" 'an error occurs

Does someone know what can cause the error in the example?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:32:50+00:00Added an answer on June 10, 2026 at 8:32 pm

    Use the permissions.insert method, there is an example for .Net in our examples section for that method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get a list of documents which are in Shared Documents (this
I am using interop and I want to get the list of all content
Using the Document List API v3.0, I'm already creating a document. But now I
I want to create an Android client app for Google Documents List API, taking
I want to share(and give control of) my Ubuntu 12.04 desktop to my brother(using
I want to share my experience of using maven through a proxy. You would
I want to share my session variables in PHP using many subdomains. I have
I'm using MongoDB to hold a collection of documents. Each document has an _id
I'm trying to get multiple markers on a Google map using API V3. The
I have one C# Application written using .net framework4.0.It is working good.Now i want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.