<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life</title>
	<atom:link href="https://life.co-hey.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://life.co-hey.com</link>
	<description></description>
	<lastBuildDate>Tue, 14 May 2024 14:25:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">43808276</site>	<item>
		<title>バランスラボの椅子を購入しました</title>
		<link>https://life.co-hey.com/2024/05/%e3%83%90%e3%83%a9%e3%83%b3%e3%82%b9%e3%83%a9%e3%83%9c%e3%81%ae%e6%a4%85%e5%ad%90%e3%82%92%e8%b3%bc%e5%85%a5%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Tue, 14 May 2024 14:25:25 +0000</pubDate>
				<category><![CDATA[feeling]]></category>
		<category><![CDATA[家具]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1916</guid>

					<description><![CDATA[ラクに姿勢がよくなる椅子｜バランス イージー　バランスラボ – バランスチェアのbalans lab (バランスラボ) 公式サイト 長女が机に向かうときの椅子としてバランスラボの椅子を購入しました。合う合わないが別れる椅子だと思いますが、長女の場合はのノートと目の距離が近くなりがちという姿勢の問題が改善されたので、購入して良かったと思います。変わった座り方になることもあり、合わない方は安定して座れないことも多いそうです。長女の場合は、試し座りに行ったお店でもきれいに座れていたので、相性がよかったのだと思います。 この椅子の特徴としては、下記の点があります。 座面の高さが変えられないのは、机の高さが一般的な70cm前後ではない机を利用されている場合に問題があると思います。身長が130cmくらいの長女の場合は、70cmの机だとあと2cmくらい高くしてもいいかなくらいのサイズでした。机の高さを返るか、椅子を置く床をかさ上げするかになるので、5cm以上の調整は難しいのではないかと思います。]]></description>
										<content:encoded><![CDATA[
<p><a href="https://balanslab.jp/products/balanseasy">ラクに姿勢がよくなる椅子｜バランス イージー　バランスラボ – バランスチェアのbalans lab (バランスラボ) 公式サイト</a></p>



<p>長女が机に向かうときの椅子としてバランスラボの椅子を購入しました。合う合わないが別れる椅子だと思いますが、長女の場合はのノートと目の距離が近くなりがちという姿勢の問題が改善されたので、購入して良かったと思います。変わった座り方になることもあり、合わない方は安定して座れないことも多いそうです。長女の場合は、試し座りに行ったお店でもきれいに座れていたので、相性がよかったのだと思います。</p>



<p>この椅子の特徴としては、下記の点があります。</p>



<ul class="wp-block-list">
<li>座面の高さが変えられない</li>



<li>足が床につかないので、椅子の位置を変更しづらい (一度椅子から降りる必要がある)</li>
</ul>



<p>座面の高さが変えられないのは、机の高さが一般的な70cm前後ではない机を利用されている場合に問題があると思います。身長が130cmくらいの長女の場合は、70cmの机だとあと2cmくらい高くしてもいいかなくらいのサイズでした。机の高さを返るか、椅子を置く床をかさ上げするかになるので、5cm以上の調整は難しいのではないかと思います。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1916</post-id>	</item>
		<item>
		<title>GoogleDriveの特定フォルダ配下のフォルダ・ファイルの権限をチェックするGoogleAppsScriptを作りました</title>
		<link>https://life.co-hey.com/2023/08/googledrive%e3%81%ae%e7%89%b9%e5%ae%9a%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e9%85%8d%e4%b8%8b%e3%81%ae%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%83%bb%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e6%a8%a9/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Mon, 07 Aug 2023 13:48:32 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[GoogleAppsScript]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1868</guid>

					<description><![CDATA[実行するアカウントが参照出来る範囲で、GoogleDriveの指定フォルダ配下のアクセス権限を調査するGoogleAppsScriptを作成しました。]]></description>
										<content:encoded><![CDATA[
<p>実行するアカウントが参照出来る範囲で、GoogleDriveの指定フォルダ配下のアクセス権限を調査するGoogleAppsScriptを作成しました。</p>



<p>folderIdで指定したフォルダ配下のフォルダ・ファイルの調査結果を、spreadsheetUrlで指定したスプレッドシートまたはこのスクリプトのコンテナになるスプレッドシートのsheetNameで指定したシート名のシートに書き出します。書き出されたスプレッドシートのイメージは下記表です。</p>



<figure class="wp-block-table is-style-regular" style="font-size:11px"><table  class=" table table-hover" ><tbody><tr><td>階層</td><td>種別</td><td>ID</td><td>パス</td><td>アクセス範囲</td><td>アクセス権限</td><td>オーナー</td><td>編集権限所有者</td><td>参照権現所有者</td><td>アクセス権限継承</td><td>サブフォルダチェック</td></tr><tr><td>1</td><td>Folder</td><td>xxxxx</td><td>yyyy</td><td>PRIVATE</td><td>NONE</td><td>xxx@xxx.com</td><td>xxx@xxx.com</td><td>yyy@xxx.com</td><td>FALSE</td><td>TRUE</td></tr><tr><td>2</td><td>File</td><td>ccccc</td><td>yyyy/zzzz</td><td>PRIVATE</td><td>NONE</td><td>xxx@xxx.com</td><td>xxx@xxx.com</td><td>yyy@xxx.com</td><td>TRUE</td><td></td></tr><tr><td>2</td><td>Folder</td><td>ddddd</td><td>yyyy/aaaa</td><td>PRIVATE</td><td>NONE</td><td>xxx@xxx.com</td><td>xxx@xxx.com</td><td>yyy@xxx.com,zzz@xxx.com</td><td>FALSE</td><td>TRUE</td></tr></tbody></table></figure>



<p>アクセス権限継承という列は親フォルダと、”アクセス範囲”、&#8221;アクセス権限&#8221;、&#8221;オーナー&#8221;、&#8221;編集権限所有者&#8221;、&#8221;参照権限所有者&#8221;が一致している場合にTRUEで、一致していない場合にFALSEで表示されます。</p>



<p>サブフォルダチェックという列は、該当行のフォルダの一階層したのフォルダ・ファイルのチェックが終わっていない場合はTRUEで、終わっていない場合はFALSEで表示されます。1回のスクリプト実行で指定フォルダ配下のフォルダ・ファイルのチェックが全て終わらないため、どこまでチェックが終わっていて、どこから調査を再開すればいいかを判断するためのフラグとして利用しています。種別がFileの行は空行、種別がFolderの行はTRUEまたはFALSEが表示されます。全てのフォルダのチェックが終わったら、全フォルダの行がTRUEで表示されます。</p>



<p>調査できるフォルダ・ファイルはスクリプトを実行するアカウントの権限に左右されます。実行アカウントが参照出来ないフォルダ・ファイルはリストアップされません。実行アカウントが編集できないフォルダ・ファイルの編集権限所有者と参照権限所有者は表示されません。</p>



<p>1回のスクリプト実行時間はGoogleWorkspaceのBusinessの実行時間の30分を想定して下記スクリプトを作成していますので、実行時間が6分の環境の場合は、想定通りに動かない可能性があります。具体的にはfolderIdで指定したフォルダの直下のフォルダ・ファイルのチェックが6分以内に終わらない場合は、スプレッドシートに調査結果が書き出されません。folderIdで指定したフォルダ直下にあるフォルダ・ファイルの数が300以上あると6分以内に終わらない可能性がでてきます。また実行時間が6分の環境では、処理を中断して再実行用のトリガーを設定する部分を書き換える必要があります。</p>



<p>このスクリプトをご利用される場合は、まずフォルダ数・ファイル数が少ないフォルダに対して実行いただき、動きを確かめていただけますようお願いいたします。もっといい書き方を教えていただけると大変ありがたいです。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p><strong>2023年8月9日追記</strong><br>調査完了後に、調査結果をSortしてFilterを作る部分にバグがあったので修正しました。修正箇所は、下記の赤文字部分です。</p>



<p>&lt;&lt;修正前&gt;&gt;</p>



<pre class="wp-block-code has-small-font-size"><code>  // スプレッドシートに書き出されたデータがある場合は、調査が途中である可能性があるため、調査を再開するためのトリガーを設定する
  // 書き出されたデータがない場合は、調査終了と判断し、調査結果を階層が見やすいようにソートする
  if (currentRange != sheet.getDataRange()) {
      setTrigger_();
  } else {
      // 絶対パス名で昇順ソートし、各項目でフィルターできるようにフィルターを作成する
      // ソートは2階層目のサブフォルダ以降の調査結果に対して行う(1階層目のフォルダと、2階層目のファイルはソート済なので対象にしない
      let sortStartRowCnt = 1
      for (let value of values) {
        if (value&#91;0] == 2 &amp;&amp; value&#91;1] == 'Folder') break;
        sortStartRowCnt++;
      }
      sheet.getRange(sortStartRowCnt, 1, maxRow, maxCol).sort(&#91;{column: 4, ascending: true}]);
      sheet.getRange(1, 1, maxRow, maxCol).createFilter();
  }</code></pre>



<p>&lt;&lt;修正後&gt;&gt;</p>



<pre class="wp-block-code has-small-font-size"><code>  // スプレッドシートに書き出されたデータがある場合は、調査が途中である可能性があるため、調査を再開するためのトリガーを設定する
  // 書き出されたデータがない場合は、調査終了と判断し、調査結果を階層が見やすいようにソートする
  if (currentRange<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">.getLastRow()</mark> != sheet.getDataRange()<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">.getLastRow()</mark>) {
      setTrigger_();
  } else {
      // 絶対パス名で昇順ソートし、各項目でフィルターできるようにフィルターを作成する
      // ソートは2階層目のサブフォルダ以降の調査結果に対して行う(1階層目のフォルダと、2階層目のファイルはソート済なので対象にしない
      let sortStartRowCnt = 1
      for (let value of values) {
        if (value&#91;0] == 2 &amp;&amp; value&#91;1] == 'Folder') break;
        sortStartRowCnt++;
      }
      sheet.getRange(sortStartRowCnt, 1, maxRow<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color"> - (sortStartRowCnt - 1)</mark>, maxCol).sort(&#91;{column: 4, ascending: true}]);
      sheet.<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color">getDataRange().createFilter()</mark>;
  }</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>&lt;&lt;全体&gt;&gt;</p>



<pre class="wp-block-code" style="font-size:12px"><code>//----------------
// パラメタ設定 
//----------------
// 書き出し用スプレッドシートURL
// (スプレッドシートをコンテナとしたスクリプトとして利用する際は''のままでOK)
const spreadsheetUrl = '';
//const spreadsheetUrl = 'https://docs.google.com/spreadsheets/d/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/';

// 書き出し用スプレッドーシートのシート名
const sheetName = 'Sheet1';

// 調査対象フォルダのフォルダID
const folderId = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy';

// デバッグフラグ
// trueにすると、Excecution logに、アクセス権情報を1件作成する度に表示する
const debugFlg = false;




/**
 * 指定フォルダ(サブフォルダ・ファイル含む)の調査を開始する
 * 調査結果は指定したスプレッドシートに書き出す
 */
function initialCheckPermission() {
  // 初期調査が30分以内に終わらないことは想定していない  

  const sheet = getSheet_();                                // 調査結果を書き出すスプレッドシート
  const folder = getFolder_(folderId);                      // 調査対象フォルダ
  const absolutePath = folder.getName();                    // 調査対象フォルダのフルパス
  const checkLimitDepth = getPathDepth_(absolutePath) + 1;  // 調査する階層の深さ(調査対象フォルダの直下を指定)
  let folderData = new Array();                             // 調査したアクセス権を保存する変数
  let parentPermissionInfo = new Array();                   // 親フォルダのアクセス権情報(最上位フォルダのため空配列)

  // 調査結果を書き出すスプレッドシートの内容をクリアして、指定フォルダのチェックを行う
  refleshSheet_(sheet);
  checkFolder_(folder, absolutePath, checkLimitDepth, parentPermissionInfo, folderData);

  // 調査結果をスプレットシートに書き出す
  let maxRow = sheet.getDataRange().getLastRow();
  sheet.getRange(maxRow + 1, 1, folderData.length, folderData&#91;0].length).setValues(folderData);

  // さらに深い階層を調査するために調査再開トリガーを設定する
  setTrigger_();
}

/**
 * 中断したフォルダ・ファイルのアクセス権調査を再開する
 * アクセス権調査結果が書き出されているスプレッドシートを参照し、
 * "サブフォルダチェック済"欄が"FALSE"のフォルダを対象にチェックを行う
 */
function continueCheckPermission() {
  const startTime = new Date();                 // 調査開始時刻

  const sheet = getSheet_();                     // 調査結果を書き出すスプレッドシート

  const currentRange = sheet.getDataRange();    // 記載されているデータ範囲のオブジェクト
  const minRow = currentRange.getRow();         // 記載されているデータ範囲の最小行数
  const maxCol = currentRange.getLastColumn();  // 記載されているデータ範囲の最大列数
  let maxRow = currentRange.getLastRow();       // 記載されているデータ範囲の最大行数
  const values = currentRange.getValues();      // 記載されているデータを2次元配列化したデータ

  let folderData = new Array();                 // 調査したアクセス権を保存する変数
  let folder;                                   // 調査対象フォルダのフォルダオブジェクト
  let checkLimitDepth;                          // アクセス権チェックを行う最大階層

  // 実行済のトリガーを削除する
  deleteTriggers_();

  let rowCnt = minRow;
  for (let value of values) {
    // サブフォルダチェック未のフォルダに対して、アクセス権チェックを行う
    if (value.length == maxCol &amp;&amp; value&#91;1] == 'Folder' &amp;&amp; value&#91;maxCol - 1] == false) {
      folderData = new Array();

      folder = getFolder_(value&#91;2]);                // 調査対象フォルダ
      absolutePath = value&#91;3];                      // 調査対象フォルダのフルパス
      checkLimitDepth = value&#91;0] + 1;               // 調査する階層の深さ(調査対象フォルダの直下を指定)

      // 調査対象フォルダ直下のファイル・フォルダを調査して、調査結果をスプレッドシートに出力し、
      // スプレッドシートの対象フォルダのれ行の"サブフォルダチェック"列をTRUEに変更する
      checkSubContents_(folder, absolutePath, checkLimitDepth, value, folderData);
      if (folderData.length > 0) sheet.getRange(maxRow + 1, 1, folderData.length, maxCol).setValues(folderData);
      sheet.getRange(rowCnt, maxCol).setValue('TRUE');
      // スプレッドシートに追記した分、スプレッドシートに記載されているデータ範囲の最大行数を更新する
      maxRow = maxRow + folderData.length;

      // 対象フォルダの調査が1つ終わる度に、経過時間をチェックし、25分経過していたらトリガーを設定して処理を終了する
      if ((Date.now() - startTime) > 1000 * 60 * 25) break;
    }
    rowCnt++;
  }

  // スプレッドシートに書き出されたデータがある場合は、調査が途中である可能性があるため、調査を再開するためのトリガーを設定する
  // 書き出されたデータがない場合は、調査終了と判断し、調査結果を階層が見やすいようにソートする
  if (currentRange.getLastRow() != sheet.getDataRange().getLastRow()) {
      setTrigger_();
  } else {
      // 絶対パス名で昇順ソートし、各項目でフィルターできるようにフィルターを作成する
      // ソートは2階層目のサブフォルダ以降の調査結果に対して行う(1階層目のフォルダと、2階層目のファイルはソート済なので対象にしない
      let sortStartRowCnt = 1
      for (let value of values) {
        if (value&#91;0] == 2 &amp;&amp; value&#91;1] == 'Folder') break;
        sortStartRowCnt++;
      }
      sheet.getRange(sortStartRowCnt, 1, maxRow - (sortStartRowCnt - 1), maxCol).sort(&#91;{column: 4, ascending: true}]);
      sheet.getDataRange().createFilter();
  }
}

/**
 * 調査結果を書き出すスプレッドシートのシートオブジェクトを取得する 
 * 
 * @returns {Sheet} 指定されたスプレッドーシートの指定されたシートオブジェクト
 */
function getSheet_() {
  let sheet;

  try {
    if (spreadsheetUrl.length > 0) {
      sheet = SpreadsheetApp.openByUrl(spreadsheetUrl).getSheetByName(sheetName);
    } else {
      sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName);
    }
  } catch (e) {
    console.error('スプレッドシートURL(spreadsheetUrl)に存在しないURLが設定されているか、このスクリプトがスプレッドシートに紐付けられていません。');
    throw e;
  }

  try {
    sheet.getName();
  } catch (e) {
    console.error('シート名(sheetName)に存在しないシート名が設定されています');
    throw e;
  }

  return sheet;
}

/**
 * チェック対象のフォルダオブジェクトを取得する　
 * 
 * @param {String} folderId   取得したいフォルダのフォルダID
 * @returns {Folder} 指定されたフォルダIDのフォルダオブジェクト
 */
function getFolder_(folderId)
{
  let folder;

  try {
    return DriveApp.getFolderById(folderId);
  } catch (e) {
    console.error('フォルダID(folderId)に存在しないフォルダのIDが設定されています');
    throw e;
  }
}

/**
 * アクセス権情報を書き出すスプレッドシートの内容を全て削除し、
 * アクセス権情報の項目名をヘッダーとして書き出す
 * 
 * @param {Sheet} sheet
 */
function refleshSheet_(sheet) {
  let range;
  let header = &#91;
    '階層',
    '種別',
    'ID',
    'パス',
    'アクセス範囲',
    'アクセス権限',
    'オーナー',
    '編集権限所有者',
    '参照権限所有者',
    'アクセス権限継承',
    'サブフォルダチェック済'
  ]

  // 設定されいているフィルタを解除する
  if ((range = sheet.getDataRange()).getFilter() != null) range.getFilter().remove();

  range.clear();
  sheet.getRange(1, 1, 1, header.length).setValues(&#91;header]);
  SpreadsheetApp.flush();
}

/**
 * 過去に実行された調査再開トリガーを削除する 
 */
function deleteTriggers_() {
  let triggers = ScriptApp.getProjectTriggers();

  // 既に処理を起動したトリガーを削除
  for (let trigger of triggers) {
    if (trigger.getHandlerFunction() == 'continueCheckPermission') ScriptApp.deleteTrigger(trigger);
  }
}

/**
 * 1分後に調査を再開するトリガーを設定する
 * (調査対象フォルダの規模により30分のGASの実行時間制限内に終わないため、継続調査を自動実行する)
 */
function setTrigger_() {
  // 1分後に処理を起動するトリガーを設定
  ScriptApp.newTrigger('continueCheckPermission').timeBased().after(1000 * 60).create();
}

/**
 * チェック対象フォルダおよびフォルダ配下のフォルダ・ファイルのアクセス権情報を取得する
 * 
 * @param {Folder} folder                 チェック対象フォルダのフォルダオブジェクト 
 * @param {String} absolutePath           チェック対象フォルダのフルパス
 * @param {Number} checkLimitDepth        アクセス権チェックを行う最大階層
 * @param {Array&#91;]} parentPermissionInfo  親フォルダのアクセス権情報
 * @param {Array&#91;]&#91;]} folderData          調査したアクセス権を保存する変数
 * @returns 
 */
function checkFolder_(folder, absolutePath, checkLimitDepth, parentPermissionInfo, folderData) {
  // チェック対象フォルダのアクセス権情報を取得する
  folderData.push(getPermissionInfo_(folder, absolutePath, parentPermissionInfo));

  // チェック対象フォルダの調査結果したアクセス権を保存する変数内の行数を保存する
  // (調査完了後に、"サブフォルダチェック済"カラムをTRUEにするため)
  let checkFolderRow = folderData.length - 1;

  // 調査対象フォルダを1階層目として指定階層と同じ深さになったら配下のフォルダ・ファイルのチェックを止める
  // 指定階層が0の場合は、チェックは止めない
  if (checkLimitDepth != 0 &amp;&amp; getPathDepth_(absolutePath) >= checkLimitDepth) return;

  // 調査対象フォルダのファイル・フォルダを調査して、
  // 調査結果格納変数(folderData)内の調査対象フォルダのサブフォルダチェックカラムをTRUEに変更する
  checkSubContents_(folder, absolutePath, checkLimitDepth, folderData&#91;checkFolderRow], folderData);
  folderData&#91;checkFolderRow]&#91;(folderData&#91;checkFolderRow]).length - 1] = true;
}

/**
 * チェック対象ファイルのアクセス権情報を取得する
 * 
 * @param {File} file                     調査対象のファイルオブジェクト
 * @param {String} absolutePath           調査対象のファイルのフルパス
 * @param {Array&#91;]} parentPermissionInfo  親フォルダのアクセス権情報
 * @param {Array&#91;]&#91;]} folderData          調査したアクセス権を保存する変数
 */
function checkFile_(file, absolutePath, parentPermissionInfo, folderData) {
  // チェック対象ファイルのアクセス権情報を取得する
  folderData.push(getPermissionInfo_(file, absolutePath, parentPermissionInfo));
}

/**
 * チェック対象フォルダの配下のフォルダ(サブフォルダ)・ファイルのアクセス権情報を取得する 
 * 
 * @param {Folder} folder                 チェック対象フォルダのフォルダオブジェクト
 * @param {String} absolutePath           チェック対象フォルダのフルパス 
 * @param {Number} checkLimitDepth        アクセス権チェックを行う最大階層数
 * @param {Array&#91;]} parentPermissionInfo  親フォルダのアクセス権情報
 * @param {Array&#91;]&#91;]} folderData          調査したアクセス権を保存する変数
 */
function checkSubContents_(folder, absolutePath, checkLimitDepth, parentPermissionInfo, folderData) {
  let subFolders, subFolder;
  let subFiles, subFile;

  // チェック対象フォルダの直下にあるファイルのアクセス権情報を調査する
  if ((subFiles = folder.getFiles()) != null) {
    while (subFiles.hasNext()) {
      subFile = subFiles.next();
      checkFile_(subFile, getAbsolutePath_(subFile,absolutePath), parentPermissionInfo, folderData);
    }
  }

  // チェック対象フォルダのサブフォルダおよびサブフォルダ内のファイルのアクセス権情報を調査する
  // checkFolderの中からcheckFolderが呼び出され、複数階層をチェックする
  if ((subFolders = folder.getFolders()) != null) {
    while (subFolders.hasNext()) {
      subFolder = subFolders.next();
      checkFolder_(subFolder, getAbsolutePath_(subFolder, absolutePath), checkLimitDepth, parentPermissionInfo, folderData);
    }
  }
}

/**
 * 指定されたフルパス階層数を返却する
 * (xxx/xxx/xxx というフルパスが渡されることを想定している) 
 * 
 * @param {String} absolutePath フルパス
 * @returns {Nulber}  フルパスの階層数
 */
function getPathDepth_(absolutePath) {
  let tmp = absolutePath.split('/');
  return tmp.length;
}

/**
 * チェック対象のフォルダまたはファイルのフルパスを返却する
 * (フォルダの区切り文字は"/"を利用する)
 * 
 * @param {Folder or File} obj 
 * @param {String} parentAbsolutePath 
 * @returns {String} 指定フォルダまたはファイルのフルパス
 */
function getAbsolutePath_(obj, parentAbsolutePath) {
  if (parentAbsolutePath.length > 0) {
    parentAbsolutePath = parentAbsolutePath + '/';
  }

  return parentAbsolutePath + obj.getName();
}

/**
 * チェック対象のフォルダまたはオブジェクトのアクセス権情報を返却する
 * 
 * @param {Folder or File} obj            チェック対象のファイルまたはフォルダのオブジェクト
 * @param {String} absolutePath           チェック対象のフルパス
 * @param {Array&#91;]} parentPermissionInfo  チェック対象の親フォルダのアクセス権情報
 * @returns 
 */
function getPermissionInfo_(obj, absolutePath, parentPermissionInfo) {
  let objType = 'File';

  // Fileクラスにしかない関数を呼び出し、エラーが発生したらobjはFolderオブジェクトであると判断する
  try {
    obj.getDownloadUrl();
  }catch(e) {
    objType = 'Folder';
  }

  let permissionInfo = &#91;
    getPathDepth_(absolutePath),
    objType,
    obj.getId(),                            // フォルダID or フォルダID
    absolutePath,                           // フォルダ名 or ファイル名 (フルパス)
    obj.getSharingAccess().toString(),      // 共有アクセス範囲(Domainなど、PrivateはRestrictを示す)
    obj.getSharingPermission().toString(),  // 共有アクセス権
    obj.getOwner().getEmail(),              // オーナーのメールアドレス
    getUsersEmail_(obj.getEditors()),       // 編集権限を持つユーザーのメールアドレス 
    getUsersEmail_(obj.getViewers()),       // 参照権限を持つユーザーのメールアドレス
  ];

  permissionInfo.push(isPermissionInherited_(permissionInfo, parentPermissionInfo));  // 親フォルダ権限継承フラグ
  permissionInfo.push(((objType == 'Folder')? false : ''));                           // サブフォルダチェック済フラグ

  if (debugFlg) console.log(permissionInfo.toString());

  return permissionInfo;
}

/**
 * 指定されたユーザーリストからメールアドレスを抽出し、
 * 1つの文字列に結合して返却する
 * 
 * @param {User&#91;]} users  ユーザリスト
 * @returns {String} ","で区切った複数のメールアドレス文字列
 */
function getUsersEmail_(users){
  let emails = new Array();

  if (users.length > 1) {
    users.forEach((user) => emails.push(user.getEmail()));
  }

  return emails.sort().join(',');
}

/**
 * 親フォルダとアクセス権が同じ(継承している)かを判定する  
 *  
 * @param {Array&#91;]} permissionInfo        チェック対象のアクセス権情報
 * @param {Array&#91;]} parentPermissionInfo  親フォルダのアクセス権情報
 * @returns {BOOLEAN} 親フォルダと権限が同じならtrue, 権限が異なるならfalse
 */
function isPermissionInherited_(permissionInfo, parentPermissionInfo) {
  return (
    parentPermissionInfo.length > 8
    &amp;&amp; permissionInfo&#91;4] == parentPermissionInfo&#91;4]     // 共有アクセス範囲
    &amp;&amp; permissionInfo&#91;5] == parentPermissionInfo&#91;5]     // 共有アクセス権
    &amp;&amp; permissionInfo&#91;6] == parentPermissionInfo&#91;6]     // オーナーのメールアドレス
    &amp;&amp; permissionInfo&#91;7] == parentPermissionInfo&#91;7]     // 編集権限を持つユーザーのメールアドレス
    &amp;&amp; permissionInfo&#91;8] == parentPermissionInfo&#91;8]     // 参照権限を持つユーザーのメールアドレス
  );
}</code></pre>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1868</post-id>	</item>
		<item>
		<title>Azure AD Application Proxyを経由してAzure ADをIdpとしたSAML認証を行う</title>
		<link>https://life.co-hey.com/2023/03/azure-ad-application-proxy%e3%82%92%e7%b5%8c%e7%94%b1%e3%81%97%e3%81%a6azure-ad%e3%82%92idp%e3%81%a8%e3%81%97%e3%81%9fsaml%e8%aa%8d%e8%a8%bc%e3%82%92%e8%a1%8c%e3%81%86/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Mon, 27 Mar 2023 00:30:00 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[Azure AD]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1843</guid>

					<description><![CDATA[Azzure AD Application Proxyを経由してAzure ADをIdpとしたSAML認証を行う際に設定するReply URLの設定内容が公式ドキュメントと違って少しはまったので紹介します。]]></description>
										<content:encoded><![CDATA[
<p>SAML認証をサポートしているアプリケーションをAWS等のIaaS上に構築して、IP制限を掛けてアクセス制限しており、SAML認証とAzure AD Application Proxyを同時に利用したいケースがあったので検証しました。</p>



<p><a rel="noreferrer noopener" href="https://techcommunity.microsoft.com/t5/microsoft-entra-azure-ad-blog/azure-ad-application-proxy-support-for-saml-based-apps-is-ga/ba-p/566356" target="_blank">MicrosoftのTech Communityの記事</a>で、SAMLベースのアプケーションをAzure AD Application Proxyがサポートしたことは記載があり、設定方法は<a href="https://learn.microsoft.com/en-us/azure/active-directory/app-proxy/application-proxy-configure-single-sign-on-on-premises-apps" target="_blank" rel="noreferrer noopener">MicrosoftのApplication Proxyのドキュメント</a>に記載されていましたが、これの通りに設定しても、今回はうまくいきませんでした。</p>



<p>上記の記事には、元々のReply URLが https://contosotravel.com/acs で、対応するApplication ProxyのExternal URLが https://contosotravel-f128.msappproxy.net の場合、Reply URLを、https://contosotravel-f128.msappproxy.net/acs に設定する必要があると記載されています。</p>



<p>ですが、今回検証した環境では、下記の3つのReply URLを設定する必要がありました。</p>



<pre class="wp-block-code"><code>https://contosotravel-f128.msappproxy.net/acs &#91;default]
https:&#47;&#47;contosotravel-f128.msappproxy.net/
https://contosotravel.com/acs</code></pre>



<p>上記3つを指定する必要があると記載されたドキュメントは見つけることができず、前述した<a rel="noreferrer noopener" href="https://learn.microsoft.com/en-us/azure/active-directory/app-proxy/application-proxy-configure-single-sign-on-on-premises-apps" target="_blank">MicrosoftのApplication Proxyのドキュメント</a>には、Application Proxyを利用する前にReply URLに設定していた internal URLは削除することができると書いてあります。しかし、Application Proxy経由でSAML認証を行った際に表示されるエラーメッセージに沿って設定を修正していった結果、上記3つのReply URLの設定が必要という結果なりました。</p>



<p>エラーメッセージに沿って設定を修正したら解決できたので、1日で解決できた問題でしたが、自分ではこのことが記載されているドキュメントが見つけられなかったので、メモ代わりにここに記載します。</p>



<p>今回はオンプレミス環境ではないため、IP制限をかけているURL(internal URL)もインターネット上にて名前解決はできる状態です。Application Proxy利用時に想定されている通常のケースは、インターネット上ではURLの名前解決ができないアプリケーションに対してExternal URLを発行してアクセスする形と理解しています。このような想定されているケースとの環境的な差異が、Microsoft のApplication Proxyのドキュメントの通りに設定してもうまく動かなかった原因の可能性があるのかもと思っていますが、根拠はなく、関係しているとしても正直どう関係しているのかは見当もついていません。</p>



<p>もしMicrosoftから出されているドキュメントなどで、上記設定の根拠になりそうなものをご存じの方がいらっしゃいましたら、教えていただけると大変ありがたいです。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1843</post-id>	</item>
		<item>
		<title>PowerAutomateを使ってGmailの添付ファイルをGoogleSharedDriveにファイルをアップロードする</title>
		<link>https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Sat, 25 Mar 2023 06:36:26 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[GoogleWorkspace]]></category>
		<category><![CDATA[PowerAutomate]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1717</guid>

					<description><![CDATA[PowerAutomateを使って標準のGoogleDriveコネクタではできない、SharedDriveへのファイル保存を行いました。Gmailの添付ファイルをSharedDriveに保存するフローを作る手順です。]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">はじめに</h2>



<p>特定の条件にあったメールに添付されているファイルをGoogleSharedDriveにアップしたかったので、試してみました。PowerAutomateで用意されているGoogleDriveのコネクタは個人ドライブへのファイル操作は行えますが、SharedDriveに対する操作はできないという制限があるので、SharedDriveを操作するためのカスタムコネクタを作って対応しました。</p>



<p><a rel="noreferrer noopener" href="https://developers.google.com/drive/api/guides/manage-uploads?hl=ja#http_1" target="_blank">GoogleDriveガイドのファイルデータをアップロードする</a> を見たら、マルチパートアップロードでRequest bodyを作るのが手間がかかりそうと感じました。特に境界文字列を使って分割したパーツを識別したりなどが手間がかかりそうと感じました。そのため、既存のGoogleDriveコネクタを使って個人ドライブにファイルをアップロードし、カスタムコネクタで個人ドライブからSharedDriveに移動するというやり方にしました。個人的には既存で使えるものは使って楽をしたいと考えているからです。</p>
</div></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">作業手順</h2>



<p>必要な作業は下記です。手順内で利用するGoogleアカウントは、GoogleWorkspaceのユーザーを想定しています。</p>



<pre class="wp-block-preformatted">手順1. Google Cloud PlatformでOAuthクライアントIDを作成する
手順2. 手順1.で作成したOAuthクライアントIDとクライアントシークレットを保存する
手順3. SharedDriveへファイルを移動するカスタムコネクタを作成する
手順4. 手順3.で作成したカスタムコネクタを利用したフローを作成する
手順5. 手順3.で作成したカスタムコネクタで利用するコネクションを作成する</pre>
</div></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h3 class="wp-block-heading">手順1. Google Cloud PlatformでOAuthクライアントIDを作成する</h3>



<p>OAuthクライアントIDを作成し、クライアントIDとクライアントシークレットを入手します。</p>



<p><a href="https://japan.appeon.com/technical/techblog/access-google-drive/" target="_blank" rel="noreferrer noopener">PowerBuilder Japan Portalのこちらのページ</a>にも画像つきで方法が紹介されています。</p>
</div></div>



<div style="height:13px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h4 class="wp-block-heading">1. Google Cloud Platform に新規プロジェクトを作成し、Google Drive APIを有効化する</h4>



<p><a href="https://console.cloud.google.com/" target="_blank" rel="noreferrer noopener">Google Cloud Platform</a>にアクセスし、Googleアカウントでログインします。その後、Google Drive APIを利用するための新規プロジェクトを作成します。</p>



<p>作成したプロジェクトの&#8221;APIs &amp; Services&#8221;メニューから&#8221;library&#8221;を選択し、GoogleWorkspaceのカテゴリから&#8221;Google Drive API&#8221;を選択します。&#8221;ENABLED&#8221;のボタンをクリックし、Google Drive APIを有効化します。</p>
</div></div>



<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h4 class="wp-block-heading">2. OAuthクライアントIDを作成する</h4>



<p>作成したプロジェクトの&#8221;APIs &amp; Services&#8221;メニューから&#8221;Credentials&#8221;を選択し、&#8221;+CREATE CREDENTIALS&#8221;から&#8221;OAuth client ID&#8221;を選択し、OAuthクライアントIDを作成します。OAuth consent screenにてUser Typeの選択を求められた場合は、&#8221;Internal&#8221;を選択します。(自分自身または組織内のユーザーのみが利用することを想定しています。)</p>



<p>OAuthクライアントIDの入力項目を、下記の表に沿って入力します。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">Application type</td><td class="has-text-align-center" data-align="center">Web application</td></tr><tr><td class="has-text-align-center" data-align="center">Name</td><td class="has-text-align-center" data-align="center">[お好きな名前]</td></tr><tr><td class="has-text-align-center" data-align="center">Authorized JavaScript origins</td><td class="has-text-align-center" data-align="center">[未設定]</td></tr><tr><td class="has-text-align-center" data-align="center">Authorized redirect URIs</td><td class="has-text-align-center" data-align="center">https://global.consent.azure-apim.net/redirect<br>(手順3の2.Security内の画像に記載されているRedirect URLです)</td></tr></tbody></table></figure>


<div class="wp-block-image">
<figure class="aligncenter size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="271" height="300" data-attachment-id="1826" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image-7/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?fit=829%2C917&amp;ssl=1" data-orig-size="829,917" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-7" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?fit=271%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?fit=648%2C717&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?resize=271%2C300&#038;ssl=1" alt="" class="wp-image-1826" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?resize=271%2C300&amp;ssl=1 271w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?resize=768%2C850&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-7.png?w=829&amp;ssl=1 829w" sizes="(max-width: 271px) 100vw, 271px" /></a></figure></div></div></div>



<h3 class="wp-block-heading">手順2. 手順1.で作成したOAuthクライアントIDとクライアントシークレットを保存する</h3>



<p>手順1で作成した新規プロジェクトとの&#8221;APIs &amp; Service&#8221;メニューから&#8221;Credentials&#8221;を選択し、手順1で作成したOAuthクライアントの&#8221;Action&#8221;のダウンロードアイコンをクリックし、OAuthクライアント情報をダウンロードします。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-6.png?ssl=1"><img data-recalc-dims="1" decoding="async" data-attachment-id="1824" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image-6/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-6.png?fit=118%2C88&amp;ssl=1" data-orig-size="118,88" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-6" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-6.png?fit=118%2C88&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-6.png?fit=118%2C88&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-6.png?resize=147%2C110&#038;ssl=1" alt="" class="wp-image-1824" width="147" height="110"/></a></figure></div>


<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h3 class="wp-block-heading">手順3. SharedDriveへファイルを移動するカスタムコネクタを作成する</h3>



<p>PowerAutomateの&#8221;Data &gt; Custom connectors&#8221;メニューから&#8221;+ New custom connector &gt; Create from Blank&#8221;を選び、カスタムコネクタを作成します。1.Gneral から 4. Code (Preview) まで下記のように入力します。</p>



<div style="height:12px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">1. General</h4>



<p>下記の表に沿って入力します。下記表にない項目は自由に入力します。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">Schema</td><td class="has-text-align-center" data-align="center">https</td></tr><tr><td class="has-text-align-center" data-align="center">Host</td><td class="has-text-align-center" data-align="center">www.googleapi.com</td></tr><tr><td class="has-text-align-center" data-align="center">Base URL</td><td class="has-text-align-center" data-align="center">/</td></tr></tbody></table></figure>


<div class="wp-block-image is-style-default">
<figure class="aligncenter size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?ssl=1"><img data-recalc-dims="1" decoding="async" width="300" height="225" data-attachment-id="1721" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?fit=1100%2C824&amp;ssl=1" data-orig-size="1100,824" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?fit=300%2C225&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?fit=648%2C485&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?resize=300%2C225&#038;ssl=1" alt="" class="wp-image-1721" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?resize=1024%2C767&amp;ssl=1 1024w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?resize=768%2C575&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image.png?w=1100&amp;ssl=1 1100w" sizes="(max-width: 300px) 100vw, 300px" /></a></figure></div>


<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h4 class="wp-block-heading">2. Security</h4>



<p>下記の表に沿って入力します。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">Choose what authentication is implemented by your API</td><td class="has-text-align-center" data-align="center">OAuth 2.0</td></tr><tr><td class="has-text-align-center" data-align="center">Identity Provider</td><td class="has-text-align-center" data-align="center">Google</td></tr><tr><td class="has-text-align-center" data-align="center">Client ID</td><td class="has-text-align-center" data-align="center">[手順2で保存OAuthクライアントID]</td></tr><tr><td class="has-text-align-center" data-align="center">Client secret</td><td class="has-text-align-center" data-align="center">[手順2で保存したクライアントシークレット]</td></tr><tr><td class="has-text-align-center" data-align="center">Scope</td><td class="has-text-align-center" data-align="center">https://www.googleapis.com/auth/drive</td></tr></tbody></table></figure>


<div class="wp-block-image">
<figure class="aligncenter size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="300" height="220" data-attachment-id="1724" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image-1/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?fit=1081%2C793&amp;ssl=1" data-orig-size="1081,793" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-1" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?fit=300%2C220&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?fit=648%2C475&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?resize=300%2C220&#038;ssl=1" alt="" class="wp-image-1724" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?resize=300%2C220&amp;ssl=1 300w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?resize=1024%2C751&amp;ssl=1 1024w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?resize=768%2C563&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-1.png?w=1081&amp;ssl=1 1081w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></figure></div></div></div>
</div></div>



<h4 class="wp-block-heading">3. Definition</h4>



<p>”+ New action”メニューから新しいアクションを追加し、&#8221;+ Import from sample&#8221;を選択し、Requestを下記の表に沿って入力します。&#8221;{}&#8221;で囲んだ部分は変数としてカスタムコネクタに認識されます。</p>



<p>下記表に入力しているパラメタは、<a rel="noreferrer noopener" href="https://developers.google.com/drive/api/v3/reference/files/update" target="_blank">GoogleDriveのfile updateのAPIリファレンス</a>を参考にしています。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">Verb</td><td class="has-text-align-center" data-align="center">PATCH</td></tr><tr><td class="has-text-align-center" data-align="center">URL</td><td class="has-text-align-center" data-align="center">https://www.googleapis.com/drive/v3/files/{fileID}?addParents={addParents}&amp;removeParents={removeParents}&amp;supportsAllDrives={supportsAllDrives}</td></tr><tr><td class="has-text-align-center" data-align="center">Body</td><td class="has-text-align-center" data-align="center">{}</td></tr><tr><td class="has-text-align-center" data-align="center"></td><td class="has-text-align-center" data-align="center"></td></tr></tbody></table></figure>



<div class="wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
<figure class="wp-block-image size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="232" height="300" data-attachment-id="1795" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/screenshot-2023-03-24-234206/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?fit=1576%2C2038&amp;ssl=1" data-orig-size="1576,2038" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Screenshot-2023-03-24-234206" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?fit=232%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?fit=648%2C838&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?resize=232%2C300&#038;ssl=1" alt="" class="wp-image-1795" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?resize=232%2C300&amp;ssl=1 232w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?resize=792%2C1024&amp;ssl=1 792w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?resize=768%2C993&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?resize=1188%2C1536&amp;ssl=1 1188w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?w=1576&amp;ssl=1 1576w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234206.png?w=1296&amp;ssl=1 1296w" sizes="auto, (max-width: 232px) 100vw, 232px" /></a></figure>



<figure class="wp-block-image size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="199" height="300" data-attachment-id="1726" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image-3/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?fit=498%2C752&amp;ssl=1" data-orig-size="498,752" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-3" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?fit=199%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?fit=498%2C752&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?resize=199%2C300&#038;ssl=1" alt="" class="wp-image-1726" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?resize=199%2C300&amp;ssl=1 199w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-3.png?w=498&amp;ssl=1 498w" sizes="auto, (max-width: 199px) 100vw, 199px" /></a></figure>
</div>



<div style="height:41px" aria-hidden="true" class="wp-block-spacer"></div>



<p>Queryパラメタの設定を下記の表に沿って入力します。下記表にない項目は自由に入力ください。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名 / パラメタ値</th><th class="has-text-align-center" data-align="center">AddParents</th><th class="has-text-align-center" data-align="center">removeParents</th><th class="has-text-align-center" data-align="center">supportsAllDrives</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">is required?</td><td class="has-text-align-center" data-align="center">yes</td><td class="has-text-align-center" data-align="center">removeParents</td><td class="has-text-align-center" data-align="center">no</td></tr><tr><td class="has-text-align-center" data-align="center">Type</td><td class="has-text-align-center" data-align="center">string</td><td class="has-text-align-center" data-align="center">string</td><td class="has-text-align-center" data-align="center">boolean</td></tr></tbody></table></figure>


<div class="wp-block-image">
<figure class="aligncenter size-medium"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="271" height="300" data-attachment-id="1797" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/screenshot-2023-03-24-234808/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?fit=1615%2C1786&amp;ssl=1" data-orig-size="1615,1786" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Screenshot-2023-03-24-234808" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?fit=271%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?fit=648%2C717&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?resize=271%2C300&#038;ssl=1" alt="" class="wp-image-1797" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?resize=271%2C300&amp;ssl=1 271w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?resize=926%2C1024&amp;ssl=1 926w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?resize=768%2C849&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?resize=1389%2C1536&amp;ssl=1 1389w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?w=1615&amp;ssl=1 1615w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-24-234808.png?w=1296&amp;ssl=1 1296w" sizes="auto, (max-width: 271px) 100vw, 271px" /></a></figure></div>


<h4 class="wp-block-heading">4. Code (Preview)</h4>



<p>Code Detailsの部分のトグルボタンをクリックし、&#8221;Code Disabled&#8221;にします。&#8221;Code Enable&#8221;になっているとFlowを実行したときに、ここに記載しているテストが実行されます。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="648" height="315" data-attachment-id="1728" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/image-5/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?fit=1098%2C533&amp;ssl=1" data-orig-size="1098,533" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-5" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?fit=300%2C146&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?fit=648%2C315&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?resize=648%2C315&#038;ssl=1" alt="" class="wp-image-1728" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?resize=1024%2C497&amp;ssl=1 1024w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?resize=300%2C146&amp;ssl=1 300w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?resize=768%2C373&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/image-5.png?w=1098&amp;ssl=1 1098w" sizes="auto, (max-width: 648px) 100vw, 648px" /></a></figure></div>


<h3 class="wp-block-heading">手順4. 手順3.で作成したカスタムコネクタを利用したFlowを作成する</h3>



<p>&#8220;My flows&#8221;メニューから&#8221;+New flow&#8221;を選択し、&#8221;Automated clod flow&#8221;を選択します。新しいFlowのトリガーは、Gmailの&#8221;When a new email arrives&#8221;を選択して、Flowを作成します。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="648" height="418" data-attachment-id="1802" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/screenshot-2023-03-25-001151/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?fit=1357%2C874&amp;ssl=1" data-orig-size="1357,874" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Screenshot-2023-03-25-001151" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?fit=300%2C193&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?fit=648%2C418&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?resize=648%2C418&#038;ssl=1" alt="" class="wp-image-1802" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?resize=1024%2C660&amp;ssl=1 1024w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?resize=300%2C193&amp;ssl=1 300w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?resize=768%2C495&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?w=1357&amp;ssl=1 1357w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-001151.png?w=1296&amp;ssl=1 1296w" sizes="auto, (max-width: 648px) 100vw, 648px" /></a></figure></div>


<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>



<p>下記画像を参考にSharedDriveに保存したいファイルが添付されたメールを抽出できるよう&#8221;When a new email arrives&#8221;のフィルター条件を設定してください。</p>



<p>次に添付ファイルを個人ドライブに保存するために、既存のGoogleDriveコネクタのCreate fileアクションを追加して、各パラメタを下記表に沿って入力します。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">Folder path</td><td class="has-text-align-center" data-align="center">[個人Drive内のフォルダパス]<br>(フォルダアイコンをクリックしてGUIで個人Driveの中のフォルダを選択できます。<br>認証を求めらたらGoogleアカウントで認証してください。認証するとGoogleDriveのコネクションが作成されます。)</td></tr><tr><td class="has-text-align-center" data-align="center">File name</td><td class="has-text-align-center" data-align="center">[GmailのAttchments Name]</td></tr><tr><td class="has-text-align-center" data-align="center">　File content</td><td class="has-text-align-center" data-align="center">[GmailのAttachments Content]</td></tr></tbody></table></figure>



<p>次に、個人Driveに保存したファイルをSharedDriveに移動するために、手順3で作成したカスタムコネクタのmovefileアクションを追加して、各パラメタを下記表に沿って入力します。</p>



<figure class="wp-block-table is-style-regular has-small-font-size"><table  class=" table table-hover" ><thead><tr><th class="has-text-align-center" data-align="center">パラメタ名</th><th class="has-text-align-center" data-align="center">パラメタ値</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">fileID</td><td class="has-text-align-center" data-align="center">[GoogleDriveのid]</td></tr><tr><td class="has-text-align-center" data-align="center">addParents</td><td class="has-text-align-center" data-align="center">[移動先SharedDriveのフォルダID]<br>(フォルダIDの調べ方は<a rel="noreferrer noopener" href="https://meshilabo.xyz/how-to-google-drive-folder-id-323" target="_blank">メシラボさんの記事</a>がわかりやすかったです)</td></tr><tr><td class="has-text-align-center" data-align="center">removeParents</td><td class="has-text-align-center" data-align="center">[移動元個人DriveのフォルダID]</td></tr><tr><td class="has-text-align-center" data-align="center">supportsAllDrives</td><td class="has-text-align-center" data-align="center">Yes</td></tr><tr><td class="has-text-align-center" data-align="center">body</td><td class="has-text-align-center" data-align="center">[無記入]</td></tr></tbody></table></figure>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" width="607" height="1024" data-attachment-id="1804" data-permalink="https://life.co-hey.com/2023/03/powerautomate%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6gmail%e3%81%ae%e6%b7%bb%e4%bb%98%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92googleshareddrive%e3%81%ab%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92/screenshot-2023-03-25-002758/" data-orig-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?fit=1036%2C1747&amp;ssl=1" data-orig-size="1036,1747" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Screenshot-2023-03-25-002758" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?fit=178%2C300&amp;ssl=1" data-large-file="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?fit=607%2C1024&amp;ssl=1" src="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?resize=607%2C1024&#038;ssl=1" alt="" class="wp-image-1804" srcset="https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?resize=607%2C1024&amp;ssl=1 607w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?resize=178%2C300&amp;ssl=1 178w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?resize=768%2C1295&amp;ssl=1 768w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?resize=911%2C1536&amp;ssl=1 911w, https://i0.wp.com/life.co-hey.com/wp-content/uploads/2023/03/Screenshot-2023-03-25-002758.png?w=1036&amp;ssl=1 1036w" sizes="auto, (max-width: 607px) 100vw, 607px" /></a></figure></div>


<p>ここまで入力したら作成したFlowを保存してください。</p>



<h3 class="wp-block-heading">手順5. 手順3.で作成したカスタムコネクタで利用するコネクションを作成する</h3>



<p>&#8220;Data&#8221;メニューから&#8221;Custom connectors&#8221;を選択し、手順3.で作成したカスタムコネクタの横にある&#8221;+&#8221;を選択します。Googleアカウントでの認証を求めらるので、Googleアカウントで認証してください。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>これで準備は完了です。Gmailにファイルが添付されたメールを送り、SharedDriveにファイルが保存されるかをご確認ください。</p>



<p>説明がわかりづらい部分もあるかと思いますが、お役にたちましたらうれしいです。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1717</post-id>	</item>
		<item>
		<title>音声入力に助けられた</title>
		<link>https://life.co-hey.com/2022/07/%e9%9f%b3%e5%a3%b0%e5%85%a5%e5%8a%9b%e3%81%ab%e5%8a%a9%e3%81%91%e3%82%89%e3%82%8c%e3%81%9f/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Sun, 10 Jul 2022 15:00:50 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1695</guid>

					<description><![CDATA[先週末、家族で川遊びをした時に転んでしまって、左手の中指を少し折ってしまった。幸いけがは大したことなかったものの左手の親指を残す四本は包帯でぐるぐるに巻かれているため、タイピングができない。左手でタイピングに使えるのは親指と中指のみ、いつもより作業効率が落ちるのは目に見えている。 すこしでも効率を落とさないために何かできることはないかと考えて、思いついたのが音声入力だった。Windowsにはたしか標準でついたことを思い出し、早速試してみた。 これが思ったよりよかった。 ある程度長く話すと変換の精度もなかなかである。アルファベットを打ち込むことには向かないので、スクリプトや設定ファイルを書くことはできないけれど、チャットに返信したり、メールを書いたり、ドキュメントを書くのには充分使えた。ドキュメント内に出てくるアルファベットはカタカナで表記されてしまうため、後で自分で書き直す必要があるが、全部を今の自分が書くよりは全然早い。 また、考えていることを外に出すときは、独特の気持ちよさがあると感じた。タイピングする時に、対して何か妨げられて無い感覚がある。一回できれいな文章を書こうとすると、もちろんタイピングの方が良いのだけれど、考えていることをただつらつらとメモるだけであれば音声入力の方が、一気に書きやすい気がした。 当初は怪我している間の代替手段として始めた音声入力だったけれど、自分の考えをまとめたり、かき出したりという用途だったら、今後も使えそうな気がする。資料を眺めながら気に入ったところメモしたり、資料の感想をただダラダラと喋って行くのにもむいていそうと思っている。 あとボソボソとしゃべると認識率が下がるので、聞き取りやすくはっきり喋ると言う必要はある。大きな声で話す必要はないけれど、きちんと口を開けて動かしてしゃべるというイメージ。これはオンラインミーティングで相手が聞き取りやすく話すということの訓練にも使えるかもしれない。 在宅勤務で働いている方ならヘッドセットやマイクも揃っているので、すぐにでも始められると思う。考えをまとめるとき、なんとなく手が疲れたっていう時、音声入力を試してみると、いいかもしれない。]]></description>
										<content:encoded><![CDATA[
<p>先週末、家族で川遊びをした時に転んでしまって、左手の中指を少し折ってしまった。幸いけがは大したことなかったものの左手の親指を残す四本は包帯でぐるぐるに巻かれているため、タイピングができない。左手でタイピングに使えるのは親指と中指のみ、いつもより作業効率が落ちるのは目に見えている。</p>



<p>すこしでも効率を落とさないために何かできることはないかと考えて、思いついたのが音声入力だった。Windowsにはたしか標準でついたことを思い出し、早速試してみた。</p>



<p>これが思ったよりよかった。 ある程度長く話すと変換の精度もなかなかである。アルファベットを打ち込むことには向かないので、スクリプトや設定ファイルを書くことはできないけれど、チャットに返信したり、メールを書いたり、ドキュメントを書くのには充分使えた。ドキュメント内に出てくるアルファベットはカタカナで表記されてしまうため、後で自分で書き直す必要があるが、全部を今の自分が書くよりは全然早い。</p>



<p>また、考えていることを外に出すときは、独特の気持ちよさがあると感じた。タイピングする時に、対して何か妨げられて無い感覚がある。一回できれいな文章を書こうとすると、もちろんタイピングの方が良いのだけれど、考えていることをただつらつらとメモるだけであれば音声入力の方が、一気に書きやすい気がした。</p>



<p>当初は怪我している間の代替手段として始めた音声入力だったけれど、自分の考えをまとめたり、かき出したりという用途だったら、今後も使えそうな気がする。資料を眺めながら気に入ったところメモしたり、資料の感想をただダラダラと喋って行くのにもむいていそうと思っている。</p>



<p>あとボソボソとしゃべると認識率が下がるので、聞き取りやすくはっきり喋ると言う必要はある。大きな声で話す必要はないけれど、きちんと口を開けて動かしてしゃべるというイメージ。これはオンラインミーティングで相手が聞き取りやすく話すということの訓練にも使えるかもしれない。</p>



<p>在宅勤務で働いている方ならヘッドセットやマイクも揃っているので、すぐにでも始められると思う。考えをまとめるとき、なんとなく手が疲れたっていう時、音声入力を試してみると、いいかもしれない。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1695</post-id>	</item>
		<item>
		<title>2021年に買ってよかったもの</title>
		<link>https://life.co-hey.com/2022/01/2021%e5%b9%b4%e3%81%ab%e8%b2%b7%e3%81%a3%e3%81%a6%e3%82%88%e3%81%8b%e3%81%a3%e3%81%9f%e3%82%82%e3%81%ae/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Tue, 04 Jan 2022 14:12:36 +0000</pubDate>
				<category><![CDATA[feeling]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1682</guid>

					<description><![CDATA[キーボード [Mistel BAROCCO MD770] 2020年も同じキーボードを購入しましたが、今回は軸違いです。前回は静音赤軸、今回はスピードシルバー軸です。静音赤軸も気に入っていたのですが、もっと打鍵感を軽くしたくてシルバー軸を買ってみました。結果は大成功。シルバー軸の打鍵感の方が断然好みでした。キーが重いなーと感じることもなく。指に力を込める感覚もほとんどなく快適に使えています。分割キーボード自体は気に入っていたので、とてもよい買い物でした。 マウス [Logicool MX ERGO] ずっとマウスは小さくて軽いのが好みだったのですが、分割キーボードを使い始めてから、キーボードをマウスが時々当たるのが気になって購入しました。使い始めてすぐは、失敗した。これは慣れられないと感じたのですが、1週間もするとなれて快適になってきました。今では、手を動かさずに操作できるこのマウスが手放せなくなりました。自宅はもちろん、オフィスに出社する際にも持って行くほど気に入っています。ちょくちょくトラックボールの動きが悪くなるのですが、ティッシュで拭くと、またスムーズに動くようになります。数日に1回は拭いているので、もうちょっと手間が省けるとうれしい部分です。 Bluetoothスピーカー [Bose SoundLink Revolve+ II] 奥さんが外で遊んだり、お風呂に入るときに音楽聴くのに欲しいと言っていたので購入しました。Bluetoohでも、Auxでも、MicroUSBでも接続できて便利です。小さい割にはいい音が出ますし、中高音は特にきれいだと感じます。キャンプで使えるように防水設計なので、お風呂の中の衣類干し棒にフックで引っかけて音楽を楽しむこともできます。スマホさえあればどこでも音楽が流せるので、子供達と川沿いに遊びに行くときに持って行ったりもしています。デスクの上に置いてPCとつないでPodcastを聞くのにも便利です。 メガネ [Masaki Matsushima MF-1215/MF-1240] かけ心地が今の頭・顔の形に合ったメガネです。幅が広めで、こめかみにメガネのつるがあまり当たらず、耳の裏の部分で挟んで固定しています。太ったことに伴い、顔の幅が広くなったので、メガネのつるがこめかみとすれて痛くなるのが嫌だったんですが、このメガネが解消してくれました。もともと顔のサイズが大きかったので、もうこのこすれる痛みは回避できないのかなーと諦めていましたが、眼鏡市場でこのメガネに出会いました。2022年のはじめにもう一本購入して、外を出歩くときに使う遠距離用とデスクワーク用に度を調整して使っています。 以上、普段の生活で触れる時間が長いものにいい出会いがあったので、とてもよかったです。]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><a rel="noreferrer noopener" href="https://www.amazon.co.jp/dp/B08MZN98VW" target="_blank"><strong>キーボード</strong></a><a href="https://www.amazon.co.jp/dp/B08MZN98VW" target="_blank" rel="noreferrer noopener"><strong> </strong></a><a rel="noreferrer noopener" href="https://www.amazon.co.jp/dp/B08MZN98VW" target="_blank"><strong>[Mistel BAROCCO MD770]</strong></a></h2>



<p>2020年も同じキーボードを購入しましたが、今回は軸違いです。前回は静音赤軸、今回はスピードシルバー軸です。静音赤軸も気に入っていたのですが、もっと打鍵感を軽くしたくてシルバー軸を買ってみました。結果は大成功。シルバー軸の打鍵感の方が断然好みでした。キーが重いなーと感じることもなく。指に力を込める感覚もほとんどなく快適に使えています。分割キーボード自体は気に入っていたので、とてもよい買い物でした。</p>



<h2 class="wp-block-heading"><a rel="noreferrer noopener" href="https://www.amazon.co.jp/dp/B074Z71C2M/" data-type="URL" data-id="https://www.amazon.co.jp/dp/B074Z71C2M/" target="_blank">マウス</a><a href="https://www.amazon.co.jp/dp/B074Z71C2M/" data-type="URL" data-id="https://www.amazon.co.jp/dp/B074Z71C2M/" target="_blank" rel="noreferrer noopener"> </a><a rel="noreferrer noopener" href="https://www.amazon.co.jp/dp/B074Z71C2M/" data-type="URL" data-id="https://www.amazon.co.jp/dp/B074Z71C2M/" target="_blank">[Logicool MX ERGO]</a></h2>



<p>ずっとマウスは小さくて軽いのが好みだったのですが、分割キーボードを使い始めてから、キーボードをマウスが時々当たるのが気になって購入しました。使い始めてすぐは、失敗した。これは慣れられないと感じたのですが、1週間もするとなれて快適になってきました。今では、手を動かさずに操作できるこのマウスが手放せなくなりました。自宅はもちろん、オフィスに出社する際にも持って行くほど気に入っています。ちょくちょくトラックボールの動きが悪くなるのですが、ティッシュで拭くと、またスムーズに動くようになります。数日に1回は拭いているので、もうちょっと手間が省けるとうれしい部分です。</p>



<h2 class="wp-block-heading"><a rel="noreferrer noopener" href="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" data-type="URL" data-id="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" target="_blank">Bluetoothスピーカー</a><a href="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" data-type="URL" data-id="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" target="_blank" rel="noreferrer noopener"> </a><a rel="noreferrer noopener" href="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" data-type="URL" data-id="https://www.amazon.co.jp/gp/product/B08PF6T4B2/" target="_blank">[Bose SoundLink Revolve+ II]</a></h2>



<p>奥さんが外で遊んだり、お風呂に入るときに音楽聴くのに欲しいと言っていたので購入しました。Bluetoohでも、Auxでも、MicroUSBでも接続できて便利です。小さい割にはいい音が出ますし、中高音は特にきれいだと感じます。キャンプで使えるように防水設計なので、お風呂の中の衣類干し棒にフックで引っかけて音楽を楽しむこともできます。スマホさえあればどこでも音楽が流せるので、子供達と川沿いに遊びに行くときに持って行ったりもしています。デスクの上に置いてPCとつないでPodcastを聞くのにも便利です。</p>



<h2 class="wp-block-heading"><a rel="noreferrer noopener" href="http://masaki-matsushima.jp/" data-type="URL" data-id="http://masaki-matsushima.jp/" target="_blank">メガネ [Masaki Matsushima MF-1215/MF-1240]</a></h2>



<p>かけ心地が今の頭・顔の形に合ったメガネです。幅が広めで、こめかみにメガネのつるがあまり当たらず、耳の裏の部分で挟んで固定しています。太ったことに伴い、顔の幅が広くなったので、メガネのつるがこめかみとすれて痛くなるのが嫌だったんですが、このメガネが解消してくれました。もともと顔のサイズが大きかったので、もうこのこすれる痛みは回避できないのかなーと諦めていましたが、眼鏡市場でこのメガネに出会いました。2022年のはじめにもう一本購入して、外を出歩くときに使う遠距離用とデスクワーク用に度を調整して使っています。</p>



<p><br>以上、普段の生活で触れる時間が長いものにいい出会いがあったので、とてもよかったです。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1682</post-id>	</item>
		<item>
		<title>Microsoftのプライバシー関係のドキュメント</title>
		<link>https://life.co-hey.com/2021/04/microsoft%e3%81%ae%e3%83%97%e3%83%a9%e3%82%a4%e3%83%90%e3%82%b7%e3%83%bc%e9%96%a2%e4%bf%82%e3%81%ae%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 10:05:28 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[Microsoft]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1664</guid>

					<description><![CDATA[Microsoftサービス(AzureとかMicrosoft365)とかのドキュメントいっぱいあるなーと思いながら、いつも読むのが途中になって、次に読み始めた時に、何読んでたのか覚えていないとなっていた。 今回は、あとで読みかえすため、どんな文書読んでたかを残しておきたので、ブログに書きます。単なるリンク集ですが、自分にとっては、きっと後で見返す、大事なものになると思うので。 Privacy Statement terms of use Microsoftサービス規約 プライバシー Microsoftはお客様のデータをクラウドの中でどあつかうか(ホワイトペーパー) お客様のデータに誰がどのような条件でアクセスできるか (サブプロセッサーのリストもあり) Microsoftによるオンラインサービスのデータ分類方法 AzureADのデータ保管場所 Microsoftでのデータ管理 お客様のデータの保管場所 Microsoft 365のデータ保管場所 Microsoft Azureの法的情報 サービスレベルアグリーメント Azureのセキュリティのドキュメント Microsoftコンプライアンスのサービス]]></description>
										<content:encoded><![CDATA[
<p>Microsoftサービス(AzureとかMicrosoft365)とかのドキュメントいっぱいあるなーと思いながら、いつも読むのが途中になって、次に読み始めた時に、何読んでたのか覚えていないとなっていた。</p>



<p>今回は、あとで読みかえすため、どんな文書読んでたかを残しておきたので、ブログに書きます。単なるリンク集ですが、自分にとっては、きっと後で見返す、大事なものになると思うので。</p>



<p><a href="https://privacy.microsoft.com/en-us/privacystatement" data-type="URL" data-id="https://privacy.microsoft.com/en-us/privacystatement" target="_blank" rel="noreferrer noopener">Privacy Statement</a></p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/en-us/legal/intellectualproperty/copyright" data-type="URL" data-id="https://www.microsoft.com/en-us/legal/intellectualproperty/copyright" target="_blank">terms of use</a></p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/servicesagreement/" data-type="URL" data-id="https://www.microsoft.com/ja-jp/servicesagreement/" target="_blank">Microsof</a><a href="https://www.microsoft.com/ja-jp/servicesagreement/" data-type="URL" data-id="https://www.microsoft.com/ja-jp/servicesagreement/" target="_blank" rel="noreferrer noopener">t</a><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/servicesagreement/" data-type="URL" data-id="https://www.microsoft.com/ja-jp/servicesagreement/" target="_blank">サービス規約</a></p>



<p><a href="https://www.microsoft.com/ja-jp/trust-center/privacy" data-type="URL" data-id="https://www.microsoft.com/ja-jp/trust-center/privacy">プライバシー</a></p>



<p><a rel="noreferrer noopener" href="https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4qVL2" data-type="URL" data-id="https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4qVL2" target="_blank">Microsoftはお客様のデータをクラウドの中でどあつかうか(ホワイトペーパー)</a></p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/trust-center/privacy/data-access" data-type="URL" data-id="https://www.microsoft.com/ja-jp/trust-center/privacy/data-access" target="_blank">お客様のデータに誰がどのような条件でアクセスできるか</a>  (サブプロセッサーのリストもあり)</p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/trust-center/privacy/customer-data-definitions" data-type="URL" data-id="https://www.microsoft.com/ja-jp/trust-center/privacy/customer-data-definitions" target="_blank">Microsoftによるオンラインサービスのデータ分類方法</a></p>



<p><a rel="noreferrer noopener" href="https://msit.powerbi.com/view?r=eyJrIjoiYzEyZTc5OTgtNTdlZS00ZTVkLWExN2ItOTM0OWU4NjljOGVjIiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9" data-type="URL" data-id="https://msit.powerbi.com/view?r=eyJrIjoiYzEyZTc5OTgtNTdlZS00ZTVkLWExN2ItOTM0OWU4NjljOGVjIiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9" target="_blank">AzureADのデータ保管場所</a></p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/trust-center/privacy/data-management" data-type="URL" data-id="https://www.microsoft.com/ja-jp/trust-center/privacy/data-management" target="_blank">Microsoftでのデータ管理</a></p>



<p><a rel="noreferrer noopener" href="https://www.microsoft.com/ja-jp/trust-center/privacy/data-location" data-type="URL" data-id="https://www.microsoft.com/ja-jp/trust-center/privacy/data-location" target="_blank">お客様のデータの保管場所</a></p>



<p><a rel="noreferrer noopener" href="https://docs.microsoft.com/ja-jp/microsoft-365/enterprise/o365-data-locations?view=o365-worldwide" data-type="URL" data-id="https://docs.microsoft.com/ja-jp/microsoft-365/enterprise/o365-data-locations?view=o365-worldwide" target="_blank">Microsoft 365のデータ保管場所</a></p>



<p><a rel="noreferrer noopener" href="https://azure.microsoft.com/ja-jp/support/legal/" data-type="URL" data-id="https://azure.microsoft.com/ja-jp/support/legal/" target="_blank">Microsoft Azureの法的情報</a></p>



<p><a rel="noreferrer noopener" href="https://azure.microsoft.com/ja-jp/support/legal/sla/" data-type="URL" data-id="https://azure.microsoft.com/ja-jp/support/legal/sla/" target="_blank">サービスレベルアグリーメント</a></p>



<p><a rel="noreferrer noopener" href="https://docs.microsoft.com/ja-jp/azure/security/" data-type="URL" data-id="https://docs.microsoft.com/ja-jp/azure/security/" target="_blank">Azureのセキュリティのドキュメント</a></p>



<p><a href="https://docs.microsoft.com/ja-jp/compliance/regulatory/offering-home?view=o365-worldwide" data-type="URL" data-id="https://docs.microsoft.com/ja-jp/compliance/regulatory/offering-home?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Microsoftコンプライアンスのサービス</a></p>


]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1664</post-id>	</item>
		<item>
		<title>2020年に買ってよかったもの</title>
		<link>https://life.co-hey.com/2020/12/2020%e5%b9%b4%e3%81%ab%e8%b2%b7%e3%81%a3%e3%81%a6%e3%82%88%e3%81%8b%e3%81%a3%e3%81%9f%e3%82%82%e3%81%ae/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Mon, 28 Dec 2020 15:32:27 +0000</pubDate>
				<category><![CDATA[feeling]]></category>
		<guid isPermaLink="false">https://life.co-hey.com/?p=1653</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[
<h2><a href="https://www.amazon.co.jp/dp/B082FWNZWT/">キーボード [Mistel BAROCCO MD770]</a></h2>
<p>肩こりの解消を期待して、初めての分割キーボードを買いました。期待した通り、肩こり解消にはつながりました。特に肩から胸にかけての凝りは、かなり解消されました。肩から肩甲骨側の凝りにはあまり効果がなかったので、この部分は、姿勢など、他の要因がありそうです。</p>
<p>メカニカルキーボードも初めてで、軸の知識もあまりなかったのですが、静かで軽いのが欲しいので、静穏赤軸を選択しました。どこで入力されるかが、これまで使っていたHHKBと違ってわかりづらかったので、誤タイプが増えた気がします。タッチ感はHHKBの方が好みですが、指はHHBKより疲れなくなったと思います。</p>
<h2><a href="https://www.amazon.co.jp/gp/product/B087JKBX93/">モニターアーム [ErGear 2画面]</a></h2>
<p>モニターの下部のスペース(モニタースタンドの足がある部分)に、ノートや小物を置くスペースにしたくて、購入しました。クーポン使って5,000円くらいで購入できたので、コストパフォーマンスは抜群です。</p>
<p>作業中にモニターを動かしたり、角度をこまめに変えたい方には向きません。一回モニター位置を決めたら、ほぼ動かさない方にはお勧めです。</p>
<h2><a href="https://www.amazon.co.jp/gp/product/B003LN9JCS/">フットレスト [サンワサプライ MR-FR3]</a></h2>
<p>デスクチェアに座ると、足の収まりが悪かったので、その対策で購入。チェアにやや後傾姿勢で座った際の安定感が増します。2000円くらいで買えるので、これもコストパフォーマンスは抜群です。</p>
<h2><a href="https://www.amazon.co.jp/gp/product/B0839N8B8V/">タブレット [Kindle FireHD 8 plus]</a></h2>
<p>iPadは、電車の中やベットに横になって電子書籍を読むにはちょっと大きくて重かったので、もうちょっと軽めのやつが欲しくて、プライムセールで購入。1万円を切っていたので、もし失敗してもいいやと思えるからという理由もあったけれど、買ってよかった。軽いし、片手で持てるし、本を読む頻度が上がりました。壊れたら、また買い替えればいいという値段なので、電子書籍リーダーとして、壊れても買い続けると思います。</p>
<h2><a href="https://www.amazon.co.jp/gp/product/B07GG2VNW9/">ヘッドフォン [SteelSeries Arctis 5]</a></h2>
<p>Web会議用のマイク付きヘッドセットとして購入。LEDが光るのが気になる以外は、相手へ聞こえる自分の声も相手が話す声もクリアで、満足度が高いです。若干重いので、1日中つけ続けるのは首が凝りますが、会議のときだけつけるくらいなら全く問題なし。1万円ちょいでWeb会議が快適になるので、これもいい買い物でした。</p>
<h2><a href="https://www.amazon.co.jp/gp/product/B08J6FL39F/">ビジネスプリンタ [エプソン PC-M730F]</a></h2>
<p>書類をスキャンすることが多いのと、時々プリントすることもあるので購入。写真はデータで見るし、プリントするときはお店でプリントするようになったので、ビジネス用途のものにしました。こっちの方が、家庭向けの写真もプリントできるプリンタの半額くらいで買えます。スキャンのスピードも早くて快適。</p>
<p> </p>
<p>以上、全部自宅勤務を快適にするためのものばかりです。毎日触れるものなので、印象に残っているのも、これらになります。</p>
<p>これらを買おうかなーと検討している方の役に立つと嬉しいです。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1653</post-id>	</item>
		<item>
		<title>WindowsUpdateが上手くいないときにためすこと</title>
		<link>https://life.co-hey.com/2017/10/1569/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Mon, 30 Oct 2017 07:00:45 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows10]]></category>
		<category><![CDATA[wsus]]></category>
		<guid isPermaLink="false">http://life.co-hey.com/?p=1569</guid>

					<description><![CDATA[仕事でWindowsUpdateでのWindows10大型アップデートがうまくできない端末があって、対応しているんんですが、下記リンクで、WidnowsUpdateのユーザデータをクリアするというのは、うまくいかない場合に必ずやってみてください。 あと、トラブルシューティングツールで、WindowsUpdateの問題の解決と、ディスクのプロパティから選べるシステムファイルを対象にしたディスククリーンを実行すると、クライアント側のデータは全て消えます。 まずはこれから試してみてください。 &#160; https://blogs.technet.microsoft.com/jpwsus/2014/12/02/windows-update-3/]]></description>
										<content:encoded><![CDATA[<p>仕事でWindowsUpdateでのWindows10大型アップデートがうまくできない端末があって、対応しているんんですが、下記リンクで、WidnowsUpdateのユーザデータをクリアするというのは、うまくいかない場合に必ずやってみてください。</p>
<p>あと、トラブルシューティングツールで、WindowsUpdateの問題の解決と、ディスクのプロパティから選べるシステムファイルを対象にしたディスククリーンを実行すると、クライアント側のデータは全て消えます。</p>
<p>まずはこれから試してみてください。</p>
<p>&nbsp;</p>
<p>https://blogs.technet.microsoft.com/jpwsus/2014/12/02/windows-update-3/</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1569</post-id>	</item>
		<item>
		<title>CPUの世代での違い</title>
		<link>https://life.co-hey.com/2017/08/cpu%e3%81%ae%e4%b8%96%e4%bb%a3%e3%81%a7%e3%81%ae%e9%81%95%e3%81%84/</link>
		
		<dc:creator><![CDATA[co-hey-japan]]></dc:creator>
		<pubDate>Sat, 12 Aug 2017 14:46:24 +0000</pubDate>
				<category><![CDATA[web & pc]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://life.co-hey.com/?p=1513</guid>

					<description><![CDATA[久々にブログを書こうと思い立ったんですが、何も準備していなかったので、最近驚いたことを書いておきます。最近、会社で新しいPCが支給されたり、自分でもPCを買ったりして、複数のPCを触る機会がありました。ここで体験したのが、CPU世代での性能差です。 使ったPCは、下記の3つ ・VAIO S13(CPUはインテル6世代のCOREi7) ・DELL XPS13(CPUはインテル7世代のCOREi7) ・富士通LIFEBOOK UH(CPUはインテル7世代のCOREi5) VAIOはまだ2年も使っていないモデルで、会社でメインで利用しています。通常の利用に不満はないです。DELL XPSは家用に買ったPCで、VAIOよりも性能がいいのはわかった上で触っているのですが、びっくりしたのは富士通LIFEBOOK。CPUはi5なのに、データ量と数式が多く入ったEXCELファイルを開いたときの速度が、富士通LIFEBOOKの方が、VAIOよりも速かったんです。時間がかかるEXCELの式の再計算に差があったように見えたので、CPUの差だと考えられます。 世代が1世代違ってもi7が優位だと漠然と思っていたんですが、アーキテクチャの進化は想像以上に大きかったです。値段は富士通LIFEBOOKよりDELL XPSの方が安いので、DELL XPSの方がお買い得感があります。DELLの直販サイトでは頻繁に割引もやっているので、週に一回くらいチェックすると、よりお得なキャンペーンで購入することがあります。今(8/12)にやっているキャンペーンは18000円引き＋5%オフなので、だいぶお得です。僕が買ったときより安いですね。14万くらいでi7モデルが買えてしまいます。 軽さをもとめる人は、富士通LIFEBOOKです。1kgを切っています。macbookより軽いので持ち歩いでも苦になりません。XPSより高いし、CPUのランクも落ちますが、使い比べなければわからないレベルでしょうし、重さはXPSの2/3程度です。(LIFEBOOKは約800g、XPSは約1200g) これからは、PCを購入する際に1世代とはいえ、CPUの世代はCPUのランク以上に意識する必要があるデータとして考えていきます。次は、家のメインPCのiMacの買い替えですね。XPS用に4Kの外付けディスプレイも購入したので、次はMacBook Proの15インチにして、机の上をすっきりさせたいと考えています。iMacもスペックも価格も値上がりしているので、迷うところです。iMacはデスクトップ用のCPUを積んでいるのでクアッドコアというのが魅力です。購入資金はまだないし、iMacもMacBook Airも現役で働いてくれているので、購入はまだ先になりそう。今月に第二子も生まれて、また色々買うものも出てきますしね。 WindowsPCを購入する際の参考になればと思います。国産PCだと、今の富士通LIFEBOOKはかなりいいと想います。VAIOが第7世代のCPUを積んできたら、VAIOもいいですね。デザインと使い勝手でいうと、富士通LIFEBOOK、VAIO、DELL XPSのどれかではないかと思います。]]></description>
										<content:encoded><![CDATA[<p>久々にブログを書こうと思い立ったんですが、何も準備していなかったので、最近驚いたことを書いておきます。最近、会社で新しいPCが支給されたり、自分でもPCを買ったりして、複数のPCを触る機会がありました。ここで体験したのが、CPU世代での性能差です。</p>
<p>使ったPCは、下記の3つ<br />
・VAIO S13(CPUはインテル6世代のCOREi7)<br />
・DELL XPS13(CPUはインテル7世代のCOREi7)<br />
・富士通LIFEBOOK UH(CPUはインテル7世代のCOREi5)</p>
<p>VAIOはまだ2年も使っていないモデルで、会社でメインで利用しています。通常の利用に不満はないです。DELL XPSは家用に買ったPCで、VAIOよりも性能がいいのはわかった上で触っているのですが、びっくりしたのは富士通LIFEBOOK。CPUはi5なのに、データ量と数式が多く入ったEXCELファイルを開いたときの速度が、富士通LIFEBOOKの方が、VAIOよりも速かったんです。時間がかかるEXCELの式の再計算に差があったように見えたので、CPUの差だと考えられます。</p>
<p>世代が1世代違ってもi7が優位だと漠然と思っていたんですが、アーキテクチャの進化は想像以上に大きかったです。値段は富士通LIFEBOOKよりDELL XPSの方が安いので、DELL XPSの方がお買い得感があります。DELLの直販サイトでは頻繁に割引もやっているので、週に一回くらいチェックすると、よりお得なキャンペーンで購入することがあります。今(8/12)にやっているキャンペーンは18000円引き＋5%オフなので、だいぶお得です。僕が買ったときより安いですね。14万くらいでi7モデルが買えてしまいます。</p>
<p>軽さをもとめる人は、富士通LIFEBOOKです。1kgを切っています。macbookより軽いので持ち歩いでも苦になりません。XPSより高いし、CPUのランクも落ちますが、使い比べなければわからないレベルでしょうし、重さはXPSの2/3程度です。(LIFEBOOKは約800g、XPSは約1200g)</p>
<p>これからは、PCを購入する際に1世代とはいえ、CPUの世代はCPUのランク以上に意識する必要があるデータとして考えていきます。次は、家のメインPCのiMacの買い替えですね。XPS用に4Kの外付けディスプレイも購入したので、次はMacBook Proの15インチにして、机の上をすっきりさせたいと考えています。iMacもスペックも価格も値上がりしているので、迷うところです。iMacはデスクトップ用のCPUを積んでいるのでクアッドコアというのが魅力です。購入資金はまだないし、iMacもMacBook Airも現役で働いてくれているので、購入はまだ先になりそう。今月に第二子も生まれて、また色々買うものも出てきますしね。</p>
<p>WindowsPCを購入する際の参考になればと思います。国産PCだと、今の富士通LIFEBOOKはかなりいいと想います。VAIOが第7世代のCPUを積んできたら、VAIOもいいですね。デザインと使い勝手でいうと、富士通LIFEBOOK、VAIO、DELL XPSのどれかではないかと思います。</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1513</post-id>	</item>
	</channel>
</rss>
