Integration with Lark

  • Last update:December 16, 2025
  • Overview

    Version

    Report Server VersionLark Management Plugin VersionFunctional Change

    11.0.2

    V11.0.54

    /

    V11.0.62

    Allowed you to synchronize the information of multiple companies in Member Management.

    V11.0.72

    Allowed you to synchronize users under the root department, provided the Obtain tenant information permission has been granted.

    11.0.9

    V11.0.74

    Optimized the SSO performance.

    11.0.10

    V11.0.75

    Allowed you to synchronize Lark contacts to User Management on the decision-making platform. For details, see the "User Synchronization" section.

    Function Description

    By installing and configuring the Lark Management plugin, you (the admin) can integrate FineReport with Lark and enable message pushing to Lark.

    Notes

    1. Lark member IDs cannot include special characters, as this may cause SSO to fail. Once created, the member ID cannot be modified. You can only delete and re-add the member if changes are required.

    2. You cannot install and use the Feishu Management plugin and the Lark Management plugin at the same time.

    Plugin Installation

    You can download the Lark Management plugin at https://market.fanruan.com/plugin/362944a3-ecb5-49fe-8987-74f5cd006cc4 and the HTML5 Mobile Display plugin at https://community.finereport.com/plugin/?id=24.

    For details about how to install the plugin in the designer, see Designer Plugin Management.

    For details about how to install the plugin on the server, see Server Plugin Management.

    Custom App Creation in Lark Developer

    Custom App Creation

    1. Log in to Lark Admin as the admin, choose Workplace > App Management, and click Create App.

    2. After clicking Create App, you will be redirected to Lark Developer. Choose Custom Apps > Create Custom App.

    3. In the pop-up Create custom app window, enter the app information, and click Create, as shown in the following figure.

    3.1.jpg

    App Permission Configuration

    1. After the app is created, click the created app in Custom Apps, choose Permissions & Scopes > Add permission scopes to app, and tick the required permissions, as shown in the following figure.

    3.2-1.jpg

    2. The following table lists the required permissions.

    Permission Name

    Obtain apps information

    Obtain department's organizational structure in contacts

    Obtain user's organization information

    Obtain and update group information

    Read and send messages in private and group chats

    Read messages in private and group chats

    Read and upload images or other files

    Manage app visibility

    Obtain user groups information

    Obtain user ID

    View group information

    Read all messages in associated group chat (sensitive scope)

    Send messages as an app

    Obtain tenant information

    Get basic information in contacts

    Obtain role information

    Obtain user's mobile number

    Update the information of groups created by app

    Send batch messages to members from one or more departments

    Obtain department's basic information

    Obtain user's basic information

    Obtain group information

    Obtain private messages sent to the bot

    Send batch messages to multiple users

    Obtain user's email information

    3. You can click the permission name to view the permission description, as shown in the following figure.

    3.2-2.jpg

    iconNote: 
    Before publishing the app, you need to enter the report project to obtain the necessary information for configuring the report server and complete the server configuration.

    Obtaining App Information

    You need to collect three parameter values that will be used for configuring the report server.

    Parameter

    App ID

    App Secret

    Organization ID

    1. Click the app created in Lark Developer, choose Credentials & Basic Info > Credentials, and copy the values of App ID and App Secret, as shown in the following figure.

    3.3-1.jpg

    2. Go to Lark Admin, choose Settings > Organization Info > More, and copy the value of Organization ID, as shown in the following figure.

    3.3-2.jpg

    App Management

    Log in to the decision-making platform as the admin, and choose System Management > Lark Management > App Management.

    App Management includes Server and Lark configurations.

    Server

    Enter the server address in Server Address, and click Save.

    For example, http://Domain name:Port number/webroot/decision

    iconNote: 
    You need to enter a second-level or higher domain name that has obtained an ICP license.

    4.1.jpg

    Lark

    Click New Lark App, name the app, and enter the information collected in the "Obtaining App Information" section in App_Id, Tenant ID (Organization ID), and App_Secret, respectively.

    4.2.jpg

    App Quick Configuration

    Log in to the decision-making platform as the admin, and choose System Management > Lark Management > App Quick Configuration.

    App Quick Configuration includes Lark Proxy Jump, Lark Link Generation, and Lark Chatgroup configurations.

    Lark Proxy Jump

    1. If the report server is configured on an external network, you do not need to set the proxy server address.

    2. If the report server is configured on an internal network:

    You do not need to set the proxy server address when the report server can access the Lark server.

    You need to set the proxy server address when the report sever cannot access the Lark server.

    3. If a proxy server is required, enter the address in Proxy Server Address, and click Test Connection and Save, as shown in the following figure.

    5.1.jpg

    Lark URL Generation

    The following table describes the setting items.

    Setting ItemDescription

    Lark App Name

    Required

    Webpage

    When Webpage is set to Decision-Making Platform, a URL to access the decision-making platform is generated. When Webpage is set to Single Template, a URL to access an individual template is generated.

    Lark URL

    The Lark URL generated here can be used under:
    1. Web app > Web app configurations> Mobile homepage in the custom Lark app. For details, see the "App Homepage Configuration" section.

    2. Client Notification > Link > Custom Link in Task Schedule. For details, see Task Schedule Setting.

    Lark Redirect URL

    The generated Lark redirect URL needs to be copied to Security Settings > Redirect URLs in Lark Developer; otherwise, the JavaScript API cannot be called. For details, see the "Security Setting" section.

    iconNote: 
    If you have used the URLs generated by the Lark Management plugin of V11.0.74 and later downgrade the plugin, you need to regenerate the URLs using the plugin of the earlier version and re-copy the Lark URL and Lark redirect URL.

    Generating a Lark URL for Accessing the Decision-making Platform

    1. Select an app from the Lark App Name drop-down box, and select Decision-Making Platform from the Webpage drop-down box.

    2. Click Generate Link. The Lark URL and Lark redirect URL are generated automatically.

    3. Click Copy to copy the URLs, as shown in the following figure.

    5.2.1.jpg

    Generating a Lark URL for Accessing a Single Template

    1. Select an app from the Lark App Name drop-down box, and select Single Template from the Webpage drop-down box.

    2. If the parameter setting is required, click Set Default Parameter Value to perform the setting and tick Parse Parameter Value as needed.

    3. Click Generate Link. The Lark URL and Lark redirect URL are generated automatically.

    4. Click Copy to copy the URLs, as shown in the following figure.

    5.2.2-1.jpg

    Setting the default parameter value

    After you click Set Default Parameter Value, the parameters of the template will be displayed below. You can set a default parameter value or click Add to add a parameter, as shown in the following figure.

    iconNote: 
    To delete a parameter, you can hover the cursor over the parameter value, and a  icon will appear.

    5.2.2-2.jpg

    Parsing the parameter value

    If the template a.cpt is configured with the parameter date and the parameter value is set to the formula ${today}, after you select Parse Parameter Value and click Generate Link, the generated link will contain the parsed parameter value (that is, today's date), for example, a.cpt&date=2025-11-03.

    If you want to keep the formula in the generated link rather than the parsed value, you can deselect Parse Parameter Value. In this case, the generated link will include the formula, for example, a.cpt&date=${today}.

    iconNote: 
    For URLs of templates configured with the template message event, you can deselect Parse Parameter Value, so that parameters can be calculated via formulas. For other templates, you must select Parse Parameter Value; otherwise, the parameter values may be lost.

    Generating a Lark URL for Accessing a Custom Webpage

    1. Select an App from the Lark App Name drop-down box, select Custom Link from the Webpage drop-down box, and enter the URL copied from App Encapsulation.

    2. Click Generate Link. The Lark URL and Lark redirect URL are generated automatically.

    3. Click Copy to copy the URLs, as shown in the following figure.

    5.2.3.jpg

    Lark Chat Group

    You can create a Lark chat group only after publishing the app, following the steps in the "App Publication in Lark Developer" section. Click New Lark Chatgroup to create a chat group for message pushing. In addition to the group owner, the chat group must include at least two members, as shown in the following figure.

     App Publication in Lark Developer

    Go back to Lark Developer, enter the Lark app created in the "Custom App Creation" section, and complete the necessary configurations before publishing the app.

    Security Setting

    1. Choose Securities Settings > Redirect URLs, enter the Lark redirect URL generated in the "Lark Link Generation" section, and click Add, as shown in the following figure.

    2. Configure the IP allowlist, as shown in the following figure.

    iconNote: 
    IP allowlist configuration is required for app integration.


    3. If you preview templates containing code scanning and file widgets in Lark, SSO with H5 trusted domain authentication is required, as shown in the following figure.

    App Homepage Configuration

    1. Click Add Features in Features, and select Web app.

    2. Enter the Lark URL generated in the "Lark Link Generation" section in Web app configurations, and click Save.

    iconNote: 
    To open the homepage in the Lark Desktop App Center, you need to enter the Lark URL in Desktop homepage.

    Bot Configuration

    To ensure notifications can be successfully pushed to Lark, you need to add a bot in Add Features. Otherwise, the notification push will fail.

    For details about pushing notifications to Lark, see Scheduled Notification to Lark.

    App Publication

    iconNote: 
    All configurations will take effect only after the app is published.

    1. Choose Version Management & Release > Create a Version, as shown in the following figure.

    2. Fill in App version and Update Notes as needed, and select Web App from the Default feature on mobile and Default feature on desktop drop-down boxes.

    3. Click Edit in Availability, select All members or Some members in the pop-up Availability Settings window, and click Save.

    iconNote: 

    1. For the Lark Management plugin of V11.0.65.1 and earlier versions, select All members in the Availability Settings window.

    2. To be redirected to the decision-making platform, you need to set Default feature on mobile and Default feature on desktop to Web App.

    4. Click Save, and click Submit for release.

    5. The app will be published after being approved by the admin.

    Effect Display

    Log in to Lark as a user, and you can find the published custom app in Workplace.

    User Synchronization

    Starting from FineReport of V11.0.10 and the Lark Management plugin of V11.0.75, you can synchronize the user information of Lark contacts to User Management on the decision-making platform.

    iconNote: 

    You need to distinguish user synchronization from user matching in the document. User synchronization refers to synchronizing the user information of Lark contacts to User Management on the decision-making platform, so that the user information on the platform remains consistent with that in Lark. User matching refers to the process of matching Lark contacts with FineReport users on the decision-making platform via various matching rules to ensure correct matching results.

    For details about user synchronization configuration, see User Synchronization.

    1. Synchronization configuration

    Log in to the decision-making platform, choose System Management > User Management, click Synchronize User, set User Source to Sync from Lark, select the desired Lark app in App, and click OK. In this way, the Lark contacts will be synchronized successfully.

    iconNote: 
    You can update user information on the platform via manual or automatic updates of Lark contacts under either Lark ManagementMember Management or System Management > User Management.

    2. After successful synchronization, the user information will be updated on the platform.

    iconNote: 
    Due to restrictions of Lark APIs, user passwords cannot be synchronized. Platform passwords for the synchronized users are generated randomly. If you (a synchronized user) want to log in to the decision-making platform or the DataAnalyst app using your username and password, you need to click Forgot Password to reset it.

    For details about synchronization issues, see Common Issues with User Synchronization/Import

    3. Synchronization triggering method

    Synchronization Type
    Configuration PathDetail

    Manual synchronization

    User Management > Synchronize User > Sync from Lark

    Synchronizing Lark contacts for the first time

    User Management > Synchronize User > Manage User Sync > Sync Now

    Synchronizing Lark contacts again

    Lark Management > Member Management > Update Now

    Updating Lark Contacts in Lark Management and user information in User Management

    Automatic synchronization

    Lark Management > Member Management > Set Auto Update

    Updating Lark Contacts in Lark Management and user information in User Management based on the auto update setting in Lark Management

    iconNote: 

    1. To ensure successful synchronization, you need to ensure that NameUser IDDepartment, and Phone number of new Lark contacts are not empty; otherwise, the synchronization will fail.

    2. The prerequisites for user synchronization are that the synchronization function is enabled and that the synchronized information should not have been cleared beforehand; otherwise, the synchronization will fail.

    4. Field mapping between users of Lark and the platform

    The following table lists the field mapping relationship of Lark contacts and users in User Management on the platform.

    Platform Field
    Lark Field

    Username

    User ID

    Name

    Name

    Password

    Due to restrictions of Lark APIs, user passwords cannot be synchronized. Platform passwords for the synchronized users are generated randomly.

    If you (a synchronized user) want to log in to the decision-making platform or the DataAnalyst app, you need to reset the password first.

    Mobile

    Phone number

    Mailbox

    Work email

    Department ID

    Department ID

    Department Name

    Department

    Role (Null)

    Job Title (Null)

    Role ID

    Role ID (The API is not adapted for role synchronization.)

    Role Name

    Role (The API is not adapted for role synchronization.)

    Member Management

    User Match Way

    After the custom Lark app is published, you can synchronize user information of Lark contacts under System Management > Lark Management > Member Management on the decision-making platform.

    You can select an option from the User Match Way drop-down list as needed.

    User Match Way includes four options: Lark Account Match, Mobile Number Match, Manual Match, and Custom Match. The following figure shows the Member Management page.

    iconNote: 

    1. Lark member IDs cannot include special characters, as this may cause SSO to fail. Once created, the member ID cannot be modified. You can only delete and re-add the member if changes are required.

    Note: You need to distinguish user synchronization from user matching in the document. User synchronization refers to synchronizing the user information of Lark contacts to User Management on the decision-making platform, so that the user information on the platform remains consistent with that in Lark. User matching refers to the process of matching Lark contacts with FineReport users on the decision-making platform via various matching rules to ensure correct matching results.

    iconNote: 
    You can manage all users in Member Management regardless of the number of integrated Lark apps.

    1. Lark Account Match/Mobile Number Match

    The displayed columns are the same for Lark Account Match and Mobile Number Match.

    Lark Account Match: The Lark member ID is matched with the report username. If a member ID corresponds to multiple report usernames, the first one in the user list in User Management will be matched.

    Mobile Number Match: The Lark member’s phone number is matched with the report user’s phone number. If a member’s phone number corresponds to multiple report users’ phone numbers, the first one in the user list in User Management will be matched.

    When either of these two options is selected, the displayed Lark contact information includes Name, Lark Member ID, Department, and Mobile Number, as shown in the following figure.

    2. Manual Match

    You can manually match report users with Lark members. When User Match Way is set to Manual Match, an additional Username column will appear in Lark Contacts. You can manually select the user to be matched in the Username drop-down list.

    iconNote: 

    1. You can select Select None in the Username drop-down list when Manual Match is selected.

    2. Manual Match allows you to freely choose the report user to match Lark members, and it allows matching a single report user with multiple Lark members, as shown in the following figure.

    3. Custom Match

    You can set User Match Way to Custom Match when the values of the Lark Member ID field and the report user's Username field are inconsistent.

    Select the corresponding server dataset, and select the data columns containing the Lark member IDs and report users' usernames to match Lark Member ID with Username.

    If a Lark member corresponds to multiple report users, the first one in the user list in User Management will be matched by default. When User Match Way is set to Custom Match, Match Setting appears below. You need to select a dataset, a Lark member ID, and a username for matching, as shown in the following figure.

    8.1-3.jpg

    Lark Contacts

    Click Update Now to update Lark contacts immediately.

    Click Set Auto Update. You can enable the automatic update and configure the update frequency, as shown in the following figure.

    icon

    Note: 



    1. When User Match Way is set to Lark Account Match or Mobile Number Match, if you (the admin) add, modify, or delete users on the decision-making platform or in Lark Admin, you will need to manually synchronize the Lark contacts in Member Management.

    2. When User Match Way is set to Manual Match or Custom Match, if you (the admin) add, modify, or delete users on the decision-making platform or in Lark Admin, manual synchronization of Lark contacts in Member Management is not required.

    Notes

    Published Lark App Modification

    To modify the configurations of a published Lark App, you can enter the app in Lark Developer and make the changes as needed.

    Department-Based User Selection Available in Lark Availability Settings

    Starting from the Lark Management plugin of V11.0.65.1, you can select users grouped by department in the Availability Settings, as shown in the following figure.

    iconNote: 
    The Lark Management plugin of all versions does not allow you to select individual users in Availability Settings.

    Error Code 10010002

    When you configure the Lark app, a prompt pops up, displaying the error message "An error occurred. The error code is: 10010002."

    The error is caused by the unauthorized Lark Management plugin. To resolve the issue, you can purchase the plugin to obtain the authorization.

     


    Attachment List


    Theme: Fine Mobile
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy