> For AI agents: the complete documentation index is available at https://www.jumpserver.com/docs/v4/llms.txt, the full documentation bundle is available at https://www.jumpserver.com/docs/v4/llms-full.txt.

# Integrate WeCom authentication 
## About WeCom

**WeCom** authentication is an identity verification method based on WeCom (Enterprise WeChat), supporting OAuth 2.0 authorization, QR code login, and enterprise identity binding, enabling secure and convenient enterprise user login and management.

## How to configure


1

In the right area of the top navigation bar, click .

![image](/docs/images/docs/navs/nav-settings.png)

2

Navigate to the **System settings > Authentication > WeCom**.

3

In the **WeCom** field, check to enable WeCom authentication.

4

In the **Corporation ID** field, type the WeCom corporation ID. Uniquely identifies the enterprise in WeCom, and all API requests must include this ID.

5

In the **App agent ID** field, type the WeCom app agent ID. Used to identify a specific application in WeCom, with each application having a unique Agent ID.

6

In the **App secret** field, type the WeCom app secret. Used to authenticate the application and obtain an access token for calling the WeCom API.

7

In the **User attribute** field, type the user attribute mapping. The key represents the JumpServer user attribute name (available options: name, username, email, phone, comment), while the value corresponds to the WeCom user attribute name.
```json title="WeCom User Attribute Example"
{
  "name": "alias",
  "username": "userid",
  "email": "extattr.attrs[2].value"
}
```

8

In the **Organization** field, after authentication and creation, the user will be added to the selected organization.

9

Click **Submit**.

## Test WeCom connection


1

In the right area of the top navigation bar, click .

![image](/docs/images/docs/navs/nav-settings.png)

2

Navigate to the **System settings > Authentication > WeCom**.

3

Scroll to the bottom of the page.

4

Click **Test**.

## JumpServer WeCom URLs

```md title="QR Login URL"
https://jumpserver.example.com/core/auth/wecom/qr/login/
```

```md title="QR Login Success Callback URL"
https://jumpserver.example.com/core/auth/wecom/qr/login/callback/
```

```md title="OAuth Login URL"
https://jumpserver.example.com/core/auth/wecom/oauth/login/
```

```md title="OAuth Login Success Callback URL"
https://jumpserver.example.com/core/auth/wecom/oauth/login/callback/
```
