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 8728969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:44:51+00:00 2026-06-13T08:44:51+00:00

I have a drive application wich changes the permissions so another user becomes the

  • 0

I have a drive application wich changes the permissions so another user becomes the owner of the file. After doing this the user get’s an email and the file is listed in all files.

I would like to know how I can change the permissions and put the file in the myDrive.
This is how I add the permissions.

      service.permissions().insert(fileId, newPermission).execute();

When a user has permissions on a file it appears in all files,but not in mydrive. How can I make it so the file is also listed in mydrive.

notes:

-The authenticated user is a service account!

-Since I turned notification emails off it doesn’t appear anywhere anymore. But when I search I can find the file and have the correct permissions. It seems that the root of the files don’t get set when changing a permission.

  • 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-13T08:44:52+00:00Added an answer on June 13, 2026 at 8:44 am

    I was adding the parents to the file parentslist and then updated the file.
    This is wrong!

    Answer: Parents have to be updated seperatly (just like permissions). Now everything is working as expected.

    dService.parents().insert(fileId, new ParentReference().setId(iDofLocation)).execute();

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

Sidebar

Related Questions

I have a web application...where I can get an excel file from network drive...using
I have an application written in Python 2.7 that reads user's file from the
I have a .NET application that is using Google Drive to access the user's
I have an application that writes to a folder on the C:\ drive. The
I have an MFC application. It is basically just copying files from one drive
In my application I have to Upload,download files to and from windows shared drive
I have a C++/CLI application which needs to format a partition (single drive letter
I have one Spreadsheet file in my Google Drive which i want to sync
I have created a sample application to insert documents into Google drive in .NET.
We have a .NET application that will be distributed through USB drive. End users

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.