> ## 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との連携方法です。マネーフォワードAdminaから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/71MdzblAHGiDLIU5/images/integrations/t8fj5lzl1o/1713856479686-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=10f82c140a349435288ae69adf6655a3" alt="SonarCloud API key generation" width="3812" height="1328" data-path="images/integrations/t8fj5lzl1o/1713856479686-image.png" />

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

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

<img src="https://mintcdn.com/moneyforwardi/71MdzblAHGiDLIU5/images/integrations/t8fj5lzl1o/1713856565193-image.png?fit=max&auto=format&n=71MdzblAHGiDLIU5&q=85&s=dc6cf6e380b4866424f98466625ffbfb" alt="Admina integration search" width="989" height="507" data-path="images/integrations/t8fj5lzl1o/1713856565193-image.png" />

前の手順で取得した**ワークスペースキーと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" />

SonarCloudとの連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。

正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。

解決しない場合はチャットにてお問い合わせください。

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

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

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

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