> ## 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.

# SmartHR

> Instructions for integrating with SmartHR.

## Supported Features

<Badge color="blue">Employee Master Integration</Badge> <Badge color="blue">Account Deletion</Badge> <Badge color="blue">Account Creation</Badge>

## About the SmartHR Integration

There are two ways to integrate SmartHR with Admina: via OAuth or via API key.

For new integrations, we recommend using OAuth as it is simpler to set up.

## Prerequisites

### How to Log In to SmartHR

Go to the [SmartHR login page](https://app.smarthr.jp/login) and enter your email address and password to log in.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716967342074.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=bc8d5a1967a53d1441af9d13ea84145e" alt="SmartHR login screen" width="682" height="636" data-path="images/integrations/zyl6g8sbgx/1716967342074.png" />

### OAuth Integration (Recommended)

To integrate via OAuth, access SmartHR Plus from the link below and authorize the connection between Admina and SmartHR.

[SaaS Management: MoneyForward Admina SmartHR Plus](https://www.smarthr.plus/apps/admina)

1. Click **Get Started**.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716884103805.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=826eeacfe2cdd3bb95c9d58ab022810f" alt="Get started" width="1558" height="720" data-path="images/integrations/zyl6g8sbgx/1716884103805.png" />

2. Log in to SmartHR with an administrator account. Once logged in, the prerequisites are complete — proceed to the Integration Setup section below.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716884142745.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=57cd43d23ab675b95b58077163b8231a" alt="Log in with administrator account" width="1722" height="418" data-path="images/integrations/zyl6g8sbgx/1716884142745.png" />

### API Key Integration

To integrate via API key, confirm the following items.

**How to Obtain Your Workspace Key**

After logging in to [SmartHR](https://app.smarthr.jp/login), **part of the URL is your workspace key**. Copy and save it.

`https://{workspace-key}.smarthr.jp/` (do not include https\://)

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1667902884880.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=7a8e381f6953a9360721c14131465d0f" alt="Workspace key" width="1126" height="454" data-path="images/integrations/zyl6g8sbgx/1667902884880.png" />

**How to Obtain Your Access Key**

The **access token is your access key**. Refer to SmartHR's documentation to issue an access token.

[How to Issue an Access Token](https://knowledge.smarthr.jp/hc/ja/articles/360026266033)

<Info>
  * The following permissions are required: read access for employee information (/crews) and accounts (/users).
  * If retrieving email addresses from custom employee fields at the time of integration, read permission for the added custom employee field items is also required.
</Info>

## Integration Setup

In the MoneyForward Admina integrations screen, search for **SmartHR**.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1643528978911.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=06df39e5fac2cea55b213f7be26f3181" alt="Search for SmartHR" width="1892" height="776" data-path="images/integrations/zyl6g8sbgx/1643528978911.png" />

### OAuth Integration (Recommended)

Click the OAuth tab and click **Connect**. Configure the following options as needed.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716885053422.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=f2ca4cad35e6ed942b2e57947791c122" alt="OAuth integration screen" width="482" height="670" data-path="images/integrations/zyl6g8sbgx/1716885053422.png" />

* **Custom employee field name for email address (optional)**: If retrieving an email address from a custom employee field, enter the **custom employee field name (shown in the red frame in the image below)**. When specified, it is retrieved as the primary address. Multiple field names can be entered separated by commas (the first field is used as the primary address). Once connected, automatic matching (merging) by the custom employee field email address becomes available.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1668653254526.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=dd7aac055994748973e2e726cbdaeb84" alt="Custom employee field" width="3034" height="1364" data-path="images/integrations/zyl6g8sbgx/1668653254526.png" />

* **Prioritize business name display**: If a business name is set in SmartHR, it will be used as the user's display name in Admina.

### API Key Integration

Select the \[API] tab, enter the values for each field below, and click **Connect**.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716885311548.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=618403b47ebc9e73e372864108d15214" alt="API key integration screen" width="487" height="911" data-path="images/integrations/zyl6g8sbgx/1716885311548.png" />

* **Workspace name**: Any string (e.g., company name)
* **Workspace key**: The **workspace key** obtained in the previous step
* **Access key**: The **API key** issued in the previous step
* **Custom employee field name for email address (optional)**: If retrieving an email address from a custom employee field, enter the **custom employee field name (shown in the red frame in the image below)**. When specified, it is retrieved as the primary address. Multiple field names can be entered separated by commas (the first field is used as the primary address). Once connected, automatic matching (merging) by the custom employee field email address becomes available.
* **Prioritize business name display**: If a business name is set in SmartHR, it will be used as the user's display name in Admina.

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1668653254526.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=dd7aac055994748973e2e726cbdaeb84" alt="Custom employee field" width="3034" height="1364" data-path="images/integrations/zyl6g8sbgx/1668653254526.png" />

Once the integration with SmartHR is successful, the registered user information will appear in the account list.

If the integration does not complete successfully, click **Edit** from the Status tab on the integrations screen and try again.

If the issue persists, please contact us via chat.

For an overview of the SmartHR integration, see the [integration page](https://admina.moneyforward.com/en/integrations/smarthr).

## Data Retrieved via SmartHR Integration

For details on the fields synced from SmartHR to Admina, please refer to [SmartHR Plus](https://www.smarthr.plus/apps/admina).

<img src="https://mintcdn.com/moneyforwardi/5aO90x6f2w9Vx4XQ/images/integrations/zyl6g8sbgx/1716885828041.png?fit=max&auto=format&n=5aO90x6f2w9Vx4XQ&q=85&s=e211d9c2a69320532cb142fad8566a68" alt="SmartHR Plus integration fields" width="861" height="838" data-path="images/integrations/zyl6g8sbgx/1716885828041.png" />
