JSONインポート

JSONファイルからのパスワードの自動移行

JSONでの記録のインポート

JSONインポートファイルには、記録、フォルダ、サブフォルダ、共有フォルダ、デフォルトのフォルダ権限、およびユーザー/チームの権限を含めることができます。

2つの記録を含むJSONインポートファイルを以下に示します。最初の記録が「My Servers」というフォルダに追加されます。2番目の記録が「My Servers」に追加され、「Shared Servers」という共有フォルダにも追加されます。

以下のインポートファイルの例は、個人用フォルダと共有フォルダにインポートできる記録オブジェクトの配列です。この例では、Facebookの記録にTOTPシードが含まれており、ボルトのユーザーインターフェースおよびCommander CLIで表示されることにご注意ください。

{
  "records": [{
    "title":"Google",
    "folders": [
      {
        "folder":"My Websites\\Online"
      }
    ],
    "login": "testing",
    "password": "lk4j139sk4j",
    "login_url": "https://google.com",
    "notes":"These are some notes.",
    "custom_fields": {"Favorite Food":"Cheetos"}
  },
  {
    "title":"Facebook",
    "folders": [
      {
        "folder":"Social Media"
      },
      {
        "shared_folder":"Shared Social",
        "can_edit": false,
        "can_share": false
      }
    ],
    "login": "me@gmail.com",
    "password":"123123123123",
    "login_url": "https://facebook.com",
    "notes":"This is our corporate shared record.",
    "custom_fields": {
      "Facebook Application ID":"ABC12345",
      "$oneTimeCode": "otpauth://totp/Amazon:me@company.com?secret=JBSWY3DPEHPK3PXP&issuer=Amazon&algorithm=SHA1&digits=6&period=30"}
  }]
}

以下の別の例では、まずユーザーとチームで共有される共有フォルダを作成し、その共有フォルダに記録をインポートします。ファイルの形式は、以下のように少し異なり、共有フォルダオブジェクトと記録の作成を分けることができます。

{
  "shared_folders": [
    {
      "path":"My Customer 1",
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {
          "uid": "kVM96KGEoGxhskZoSTd_jw",
          "manage_users": true,
          "manage_records": true
        },
        {
          "name": "user@mycompany.com",
          "manage_users": true,
          "manage_records": true
        }
      ]
    },
    {
      "path":"Testing\\My Customer 2",
      "manage_users": true,
      "manage_records": true,
      "can_edit": true,
      "can_share": true,
      "permissions": [
        {
          "uid": "ih1CggiQ-3ENXcn4G0sl-g",
          "manage_users": true,
          "manage_records": true
        },
        {
          "name": "user@mycompany.com",
          "manage_users": true,
          "manage_records": true
        }
      ]
    }
  ],
  "records": [
    {
      "title":"Bank Account 1",
      "login": "customer1234",
      "password":"4813fJDHF4239fdk",
      "login_url": "https://chase.com",
      "notes":"These are some notes.",
      "custom_fields": {
        "Account Number":"123-456-789"
      },
      "folders": [
        {
          "folder":"Optional Private Folder 1"
        }
      ]
    },
    {
      "title":"Bank Account 2",
      "login": "mybankusername",
      "password": "w4k4k193f$^&@#*%2",
      "login_url": "https://amex.com",
      "notes":"Some great information here.",
      "custom_fields": {
        "Security Group":"Public",
        "IP Address":"12.45.67.8"
      },
      "folders": [
        {
          "folder":"Optional Private Folder 1"
        },
        {
          "shared_folder":"My Customer 1",
          "can_edit": true,
          "can_share": true
        }
      ]
    }
  ]
}

厳密なJSON形式である必要があります。さもないと、解析に失敗します。このファイルを以下のようにインポートします。

$ My Vault> import --format=json import.json

共有フォルダ、フォルダ権限、ユーザー権限、チーム権限をサポートする、より複雑なインポートファイルの例がsample_data/フォルダにあります。サンプルJSONファイルをボルトにインポートするには、以下のコマンドを入力します。

$ My Vault> import --format=json sample_data/import.json.txt

サンプルファイルには、メールアドレスまたはチーム名が記載された「アクセス権限」オブジェクトが含まれています。Keeper Enterpriseアカウントにメールまたはチーム名が含まれる場合は、共有フォルダに追加されます。含まれない場合は、この情報は無視されます。

最終更新