Configure a Feishu custom app, API permissions, and field mappings so enterprise members can sign in to Qoder by scanning a Feishu QR code.
Applicable plans: Teams, Enterprise, Enterprise VPC
Feishu sign-in is mutually exclusive with other enterprise single sign-on methods, including SAML, OIDC, and DingTalk. Only one method can be enabled at a time. Disable or delete the currently enabled method before switching.
Prerequisites
Before you begin:
- Confirm that no other enterprise single sign-on method is enabled. Disable or delete SAML, OIDC, or DingTalk sign-in if it is already enabled.
- Add and verify your corporate email domain in Qoder. Members must use an email address under a verified domain to sign in through Feishu. See Domain Verification.
- Confirm that you can sign in to the Feishu Open Platform and create a custom app for your enterprise.
- Confirm that you can access the app's
App IDandApp Secret, and your Feishu enterprise number. - Confirm that you can enable contact permissions, configure data access scope, and publish an app version. Some permissions require approval from a Feishu administrator. Coordinate in advance if different administrators develop and approve the app.
- Make sure members who need Qoder have valid email addresses in Feishu. Qoder uses email addresses to associate member accounts.
Configuration Workflow
Alternate between the Feishu Open Platform and Qoder:
- Create a custom app in the Feishu Open Platform and obtain its
App ID,App Secret, and enterprise number. - Start configuring Feishu sign-in in Qoder, enter the app details, and copy the callback URL generated by Qoder.
- Return to the Feishu Open Platform to add the redirect URL, enable the permissions listed by Qoder, configure data access scope, and publish an app version.
- Return to Qoder to check authorization status, configure field mappings, and complete the integration.
Create an App in the Feishu Open Platform
Create a Custom App
- Sign in to the Feishu Open Platform and open the developer console.
- Click Create Custom App (创建企业自建应用).
- Enter the app name, description, icon, and other required information, then create the app.
- Open the app's details page.
Obtain Enterprise and App Credentials
All of the following information must belong to the same Feishu enterprise and custom app:
| Information | Purpose | Where to find it |
|---|---|---|
| Enterprise number | Identifies the Feishu enterprise | In the Feishu admin console, under Enterprise Management > Enterprise Overview, below the enterprise name |
App ID | Identifies the custom app | Credentials & Basic Info in the app details |
App Secret | Allows Qoder to authenticate the app when calling Feishu APIs | Credentials & Basic Info in the app details |
Add a Feishu Identity Source
- In the Qoder organization admin console, open Settings > Security & Identity > Access & Authentication.
- Find Feishu Sign-in (飞书登录) and click Set Up (设置).
- Follow the wizard to configure the app, assign permissions, and map fields.

Configure App Information

| Field | Required | Description |
|---|---|---|
| Display name | Yes | The identity source's name in Qoder, which helps administrators distinguish identity sources. The default is “飞书企业通讯录” (Feishu Enterprise Directory); you can change it. |
| Enterprise number | Yes | The number of your current Feishu enterprise. |
App ID | Yes | The identifier of the Feishu custom app. |
App Secret | Yes | The app secret paired with the App ID. The value is hidden by default and can be temporarily revealed when needed. |
| URL | Configuration requirement |
|---|---|
| Callback URL | Copy the actual value generated on the page and add it to the Feishu app's redirect URLs. |
Configure the Redirect URL in Feishu
Keep the Qoder configuration window open and complete these steps in the Feishu app details:
- Copy the Callback URL displayed in Qoder.
- In the Feishu app details, open Security Settings > Redirect URLs.
- Paste the URL, click Add, and save.
App ID, or App Secret is empty, Qoder marks the missing fields. Fill them in before continuing.
Assign API Permissions
The Feishu identity source needs access to member and department information. The following table lists nine related permissions. Enable every required permission and any optional permissions your organization needs.
| Permission | Scope | Required | Approval required |
|---|---|---|---|
| Read basic contact information | contact:contact.base:readonly | Yes | No |
| Read user IDs | contact:user.employee_id:readonly | Yes | No |
| Read basic department information | contact:department.base:readonly | Yes | No |
| Read department organizational structure | contact:department.organize:readonly | Yes | Yes |
| Read basic user information | contact:user.base:readonly | Yes | No |
| Read user organizational structure | contact:user.department:readonly | Yes | Yes |
| Read user email addresses | contact:user.email:readonly | Yes | No |
| Read user phone numbers | contact:user.phone:readonly | No | Yes |
| Read user employment information | contact:user.employee:readonly | No, unless email is mapped to enterprise_email | Yes |
enterprise_email, you must also enable the permission to read user employment information. Enable other optional permissions as needed.
Complete authorization in the Feishu Open Platform:
- In the app details, open Permissions and click Enable Permissions.
- Under app identity permissions, search for each scope in the table, select it, and confirm.
- On the Permissions page, click Configure beside Accessible Data Scope, select Same as the App's Availability Scope, and save.
- Open App Release > Version Management & Release, click Create Version, set the app's availability scope, and request publication.
- Wait for a Feishu administrator to approve the version in the Feishu admin console. Permissions that require approval take effect only after the app version is approved and published.

Configure Field Mappings
Field mappings determine which Qoder identity fields receive Feishu member attributes. Configure these two account fields:
| Qoder field | Attribute path | Feishu field | Configuration |
|---|---|---|---|
email | user.email | email or enterprise_email | Required. Used as the unique identifier for account association. |
displayName | user.displayName | Usually name | Determines the member's display name in Qoder. |

email and enterprise_email can map to Qoder's email field, but their sources differ:
email: The email address in the Feishu member's profile.enterprise_email: The member's enterprise email address in the current Feishu enterprise. Reading this field requires the permission to read user employment information.
enterprise_email is complete and valid for all target members, you can use it; otherwise, use email. If both fields exist but have different values, choose the one matching the Qoder account email to avoid duplicate accounts or incorrect associations.
When configuring mappings:
- Only one field can serve as the account mapping identifier: the email mapping. The selected Feishu field must provide a valid email address for every member who needs Qoder.
- If email maps to
enterprise_email, enable the permission to read user employment information; otherwise, Qoder cannot read members' enterprise email addresses. - Before completing the integration, spot-check different departments and member types to confirm that the selected email field is populated.
- Changing a mapping changes how subsequent data from the identity source is written to Qoder. Before saving, make sure it will not cause missing member information or incorrect account associations.
Verify Feishu Sign-in
After completing the integration, test the sign-in flow with one member:
- Under Settings > Security & Identity > Access & Authentication, confirm that Feishu sign-in is enabled.
- On the Qoder sign-in page, have the test member select enterprise sign-in and enter a corporate email address under a verified domain.
- After the page redirects to Feishu authentication, scan the QR code with Feishu to sign in.
- Confirm that the account email, display name, and organization are correct.
Manage the Feishu Identity Source
After completing the integration, click Set Up under Feishu Sign-in to open the identity source details.

| Section | Description |
|---|---|
| Basic information | Display name, enterprise number, identity source type, and connection time. You can change the display name. |
| App credentials | The current App ID and App Secret. You can update them, but both new values must belong to the same Feishu custom app. |
| Callback configuration | The current callback URL. Keep the Feishu app's redirect URL consistent with this value. |
| API permission configuration | Each permission's authorization status and the number of authorized permissions. After changing permissions or availability scope in Feishu and publishing a new version, click Refresh Authorization to check again. |
| Field mappings | Current account field mappings. Click Edit to change them. |
FAQ
Why Can I Not Proceed to the Next Step?
Check that the display name, enterprise number, App ID, and App Secret are all filled in. The page marks any empty required fields.
Why Are Permissions Still Unauthorized?
Check the following in order:
- The credentials configured in Qoder belong to the Feishu app you are authorizing.
- All required permissions are enabled in that app's permission settings.
- An app version has been created and published, and permissions requiring review have been approved by a Feishu administrator.
- Return to Qoder and check the authorization status again.
Why Can Some Members Not Sign In Through Feishu?
Check the following in order:
- The member is within the Feishu app's availability scope. Changes to this scope require publishing a new app version before they take effect.
- The selected email field is populated and uses a corporate email domain verified in Qoder. If email maps to
enterprise_email, confirm that the permission to read user employment information is enabled. - The email address matches the member's Qoder account email.
Should Email Map to email or enterprise_email?
email comes from the member's profile, while enterprise_email comes from the member's enterprise email address in the current Feishu enterprise. Choose the field that consistently provides a valid value for target members and matches their Qoder account email. Before completing the integration, spot-check different departments and member types to avoid missing email addresses needed for account association.