> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SonarCloud

> SonarCloudとの連携方法です。SonarCloudへの、管理者のログインから、連携方法まで一連の手順を解説します。

## サポートする機能

<Badge color="blue">アカウント削除</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

### SonarCloudへのログイン方法

[SonarCloudログインページ](https://sonarcloud.io/login)にて、メールアドレス・パスワードを入力しログインします。

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/t8fj5lzl1o/1713854734452-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=101a673828f244c27082f0e925847fbc" alt="SonarCloud login page" width="727" height="936" data-path="images/integrations/t8fj5lzl1o/1713854734452-image.png" />

### ワークスペースキーの取得方法

SonarCloudにログイン後、**URLの一部がワークスペースキー**となるのでコピー・保存します。

```
https://sonarcloud.io/organizations/<ワークスペースキー>/projects
```

### APIキーの取得方法

アカウントアイコンからメニューを開き **My account > Security** と進み、**Generate Tokens**でTokenを生成します。

これが連携で使用する**APIキー**となります。

<img src="https://mintcdn.com/moneyforwardi/RdJaHJdvCZdlODVw/images/integrations/t8fj5lzl1o/1713856479686-image.png?fit=max&auto=format&n=RdJaHJdvCZdlODVw&q=85&s=d7d4f7b8ae9d123a19c61b06519d8855" alt="SonarCloud API key generation" width="3812" height="1328" data-path="images/integrations/t8fj5lzl1o/1713856479686-image.png" />

## インテグレーションのセットアップ

1. インテグレーション画面にて、**SonarCloud**で検索します。

2. 前の手順で取得した**ワークスペースキーとAPIキー**を入力し、**連携する**をクリックします。

   <img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/t8fj5lzl1o/1713856610402-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=a5f2ea72ad0600a061992bb5b24cd7de" alt="SonarCloud integration setup" width="480" height="541" data-path="images/integrations/t8fj5lzl1o/1713856610402-image.png" />

3. SonarCloudとの連携が成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。正常に完了しない場合は、まず [SaaSとの連携に失敗する場合の対処法](/it-management/saas-management/93nahw45is-trouble) に記載のステップをお試しください。それでも解決しない場合は、[ご提供いただきたい情報](/it-management/saas-management/93nahw45is-trouble#info-to-provide) をご確認のうえ、[サポート窓口](/contact-support)までお問い合わせください。

## メールアドレスが取得出来ない場合のSaaSの手動紐づけ

本サービスはメールアドレスが取得できないSaaSのため、ユーザータイプが「不明」と判定されます。

ユーザータイプが「不明」と判定された場合は、他のアカウントと手動で紐づけ（名寄・マージ）を行ってください。

設定の詳細については、[SaaSアカウントを他のアカウントに手動で紐付け（名寄せ/マージ）する](/it-management/saas-management/d97dy5z2l7-merge)をご覧ください。
