久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='TyN1k'></tfoot>
      <bdo id='TyN1k'></bdo><ul id='TyN1k'></ul>

      <i id='TyN1k'><tr id='TyN1k'><dt id='TyN1k'><q id='TyN1k'><span id='TyN1k'><b id='TyN1k'><form id='TyN1k'><ins id='TyN1k'></ins><ul id='TyN1k'></ul><sub id='TyN1k'></sub></form><legend id='TyN1k'></legend><bdo id='TyN1k'><pre id='TyN1k'><center id='TyN1k'></center></pre></bdo></b><th id='TyN1k'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TyN1k'><tfoot id='TyN1k'></tfoot><dl id='TyN1k'><fieldset id='TyN1k'></fieldset></dl></div>
    1. <legend id='TyN1k'><style id='TyN1k'><dir id='TyN1k'><q id='TyN1k'></q></dir></style></legend>

      <small id='TyN1k'></small><noframes id='TyN1k'>

      1. 如何通過 Google Drive .NET API v3 使用服務(wù)帳戶訪問

        How to access Team Drive using service account with Google Drive .NET API v3(如何通過 Google Drive .NET API v3 使用服務(wù)帳戶訪問 Team Drive)
      2. <i id='qYffL'><tr id='qYffL'><dt id='qYffL'><q id='qYffL'><span id='qYffL'><b id='qYffL'><form id='qYffL'><ins id='qYffL'></ins><ul id='qYffL'></ul><sub id='qYffL'></sub></form><legend id='qYffL'></legend><bdo id='qYffL'><pre id='qYffL'><center id='qYffL'></center></pre></bdo></b><th id='qYffL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qYffL'><tfoot id='qYffL'></tfoot><dl id='qYffL'><fieldset id='qYffL'></fieldset></dl></div>

          <tbody id='qYffL'></tbody>

          1. <tfoot id='qYffL'></tfoot>

            1. <small id='qYffL'></small><noframes id='qYffL'>

                <bdo id='qYffL'></bdo><ul id='qYffL'></ul>
              • <legend id='qYffL'><style id='qYffL'><dir id='qYffL'><q id='qYffL'></q></dir></style></legend>

                • 本文介紹了如何通過 Google Drive .NET API v3 使用服務(wù)帳戶訪問 Team Drive的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  有誰知道應(yīng)該進行哪些配置來授予 Google 服務(wù)帳戶對已創(chuàng)建的團隊云端硬盤的訪問權(quán)限?

                  Does anyone know which configurations should be done to grant Google service account an access to a Team Drive which is already created?

                  我們的想法是使用 .NET 后端應(yīng)用程序中的服務(wù)帳戶向團隊云端硬盤上傳/下載文件,這些文件在公司員工之間共享.例如,公司有其 company.com 域,并在 Google 提供 name.surname@company.com 用戶帳戶.還有一個員工的團隊驅(qū)動器.其中一個帳戶(不是管理員)用于創(chuàng)建服務(wù)帳戶,目前已完成以下步驟:

                  The idea is to use a service account in a .NET backend application for uploading/downloading files to/from Team Drive which is shared among company employees. For example, company has its company.com domain and provides name.surname@company.com user accounts at Google. Also there is a Team Drive for the employees. One of those accounts (not admin) was used to create the service account and these steps were done so far:

                  • 在 Google Cloud Platform 中為組織創(chuàng)建項目
                  • 啟用 Google Drive API
                  • 創(chuàng)建了一個服務(wù)帳號
                  • 為該服務(wù)帳號創(chuàng)建了一個密鑰
                  • 在 IAM 選項卡中分配的編輯者/所有者角色
                  • 如此處所述,使用客戶端 ID 為服務(wù)帳號啟用 G Suite 域范圍委派 使用 G Suite 管理員帳戶.
                  • Created a project for an organization in Google Cloud Platform
                  • Enabled Google Drive API
                  • Created a service account
                  • Created a key for that service account
                  • Assigned Editor/Owner role in IAM tab
                  • Enabled G Suite Domain-wide Delegation for the service account using the Client ID as described here using G Suite admin account.

                  我在文檔中找不到任何關(guān)于如何授予服務(wù)帳戶訪問團隊云端硬盤的信息,以便所有有權(quán)訪問團隊云端硬盤的用戶都可以看到所有上傳的文件/文件夾.非常感謝任何有關(guān)如何執(zhí)行此操作的有用鏈接.

                  I couldn't find any mention in the documentation about how to grant the service account an access to Team Drive so that all uploaded files/folders could be visible to all users who have access to the Team Drive. Any useful link on how to do that is appreciated a lot.

                  目前,當(dāng)我使用服務(wù)帳戶創(chuàng)建文件夾或上傳文件時,它會將它們放在僅屬于服務(wù)帳戶的私有云端硬盤中.

                  For now, when I create a folder or upload a file using the service account, it puts them in a private Drive which belongs to the service account only.

                  可能有一個解決方法:將文件上傳到服務(wù)帳戶的私人驅(qū)動器并與用戶共享(這不是要求的首選),但是,如果有人告訴我該怎么做,我會開心.

                  There could be a possible workaround: to upload the files to service account's private drive and share them with the users (this is not preferred by the requirements), but still, if someone tells how exactly to do this, I'll be happy.

                  推薦答案

                  以下是根據(jù) 評論除了問題中的步驟.

                  Here are the steps to grant access based on the documentation from the comment in addition to the steps in the question.

                  這些步驟需要具有服務(wù)和應(yīng)用管理員角色的帳戶.

                  These steps require an account with Services and Apps admin role.

                  • 登錄 Google 管理員并轉(zhuǎn)到 應(yīng)用程序 ->谷歌 G 套件 ->云端硬盤和文檔 ->共享設(shè)置子菜單并從共享選項中選擇開啟
                  • 點擊管理團隊云端硬盤子菜單,然后點擊您要授予訪問權(quán)限的團隊云端硬盤
                  • 會員訪問權(quán)限彈出窗口中點擊添加會員
                  • 輸入服務(wù)帳號Account ID(電子郵件),選擇訪問級別(我選擇Full),勾選Skip sent notification并點擊SEND
                  • Sign-in to Google Admin and go to Apps -> Google G Suite -> Drive and Docs -> Sharing Settings sub-menu and select ON from the Sharing options
                  • Click on the Manage Team Drives sub-menu and click on the Team Drive you want to grant access to
                  • Click on ADD MEMBERS in the Member access pop-up
                  • Enter the service account Account ID (email), choose access level (I chose Full), check the Skip sending notification and click on SEND

                  假設(shè)身份驗證部分設(shè)置正確,下面是一個獲取服務(wù)帳戶的團隊驅(qū)動器的簡單代碼:

                  Assuming the authentication part is set up properly, here is a simple code which gets service account's Team Drives:

                  var teamDriveList = service.Teamdrives.List();
                      
                  teamDriveList.Fields = "teamDrives(kind, id, name)";
                  
                  var teamDrives = teamDriveList.Execute().TeamDrives;
                  
                  if (teamDrives != null && teamDrives.Count > 0)
                  {
                      foreach (var drive in teamDrives)
                      {
                          Console.WriteLine("{0} ({1})", drive.Name, drive.Id);
                      }
                  }
                  

                  詳細(xì)了解 Fields 參數(shù)語法 這里

                  More on the Fields parameter syntax here

                  這篇關(guān)于如何通過 Google Drive .NET API v3 使用服務(wù)帳戶訪問 Team Drive的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)

                  <legend id='pjNYe'><style id='pjNYe'><dir id='pjNYe'><q id='pjNYe'></q></dir></style></legend>

                • <small id='pjNYe'></small><noframes id='pjNYe'>

                          <tbody id='pjNYe'></tbody>
                        • <bdo id='pjNYe'></bdo><ul id='pjNYe'></ul>
                        • <i id='pjNYe'><tr id='pjNYe'><dt id='pjNYe'><q id='pjNYe'><span id='pjNYe'><b id='pjNYe'><form id='pjNYe'><ins id='pjNYe'></ins><ul id='pjNYe'></ul><sub id='pjNYe'></sub></form><legend id='pjNYe'></legend><bdo id='pjNYe'><pre id='pjNYe'><center id='pjNYe'></center></pre></bdo></b><th id='pjNYe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pjNYe'><tfoot id='pjNYe'></tfoot><dl id='pjNYe'><fieldset id='pjNYe'></fieldset></dl></div>
                            <tfoot id='pjNYe'></tfoot>

                            主站蜘蛛池模板: 亚洲一视频 | 欧美一区永久视频免费观看 | 久久久www成人免费无遮挡大片 | 久久成人国产精品 | 日本成年免费网站 | 亚洲精品一区二区三区蜜桃久 | 91精品国产色综合久久不卡98 | 亚洲精品第一国产综合野 | 国产日韩欧美精品 | 日本不卡一区二区三区 | 久草新视频 | 国产久 | 国产农村一级片 | 国产精品久久久久久久久久99 | 国产精品日韩 | 激情视频一区 | 欧美久久国产精品 | 亚洲国产精品suv | 成年人视频在线免费观看 | 特黄色毛片 | 精品视频久久久久久 | 欧美精品网站 | 精品伊人久久 | 四虎网站在线观看 | 91av在线免费 | 中文字幕av一区 | 日日夜夜天天 | 成人午夜 | 三级黄色片在线观看 | 人人人人爽 | av日韩一区| 国产一区二区三区在线看 | 国产视频2021 | 中文字幕一区二区三区精彩视频 | 三级av网址| 久久久精选| 欧美xxxx日本 | 欧美一级二级在线观看 | 成年人视频在线免费观看 | 亚洲精品一区二区三区在线 | 亚洲免费观看视频 |