Skip to main content

Feishu Identity Source

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
A Feishu identity source connects enterprise member identities to Qoder through a Feishu custom app. Members can then sign in to Qoder by scanning a Feishu QR code. Qoder identifies members using the configured field mappings. Whether new members can automatically join the organization depends on the member provisioning mode under Settings > Member Configuration. This guide is for administrators responsible for Qoder identity management and Feishu app configuration. Before you begin, make sure you have Qoder administrator permissions and permission to develop and configure the target Feishu custom app.
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 ID and App 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:
  1. Create a custom app in the Feishu Open Platform and obtain its App ID, App Secret, and enterprise number.
  2. Start configuring Feishu sign-in in Qoder, enter the app details, and copy the callback URL generated by Qoder.
  3. 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.
  4. 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

  1. Sign in to the Feishu Open Platform and open the developer console.
  2. Click Create Custom App (创建企业自建应用).
  3. Enter the app name, description, icon, and other required information, then create the app.
  4. Open the app's details page.
The app name identifies the app in the Feishu Open Platform. You can use the same name as the identity source's display name in Qoder. Create a custom app for your enterprise, rather than a marketplace app. For details, refer to Feishu's custom app development workflow.

Obtain Enterprise and App Credentials

All of the following information must belong to the same Feishu enterprise and custom app:
InformationPurposeWhere to find it
Enterprise numberIdentifies the Feishu enterpriseIn the Feishu admin console, under Enterprise Management > Enterprise Overview, below the enterprise name
App IDIdentifies the custom appCredentials & Basic Info in the app details
App SecretAllows Qoder to authenticate the app when calling Feishu APIsCredentials & Basic Info in the app details
App Secret is a sensitive credential. Do not send it in chat messages, emails, or support ticket bodies, or include it in public documentation or code repositories.

Add a Feishu Identity Source

  1. In the Qoder organization admin console, open Settings > Security & Identity > Access & Authentication.
  2. Find Feishu Sign-in (飞书登录) and click Set Up (设置).
  3. Follow the wizard to configure the app, assign permissions, and map fields.
Feishu sign-in entry in Qoder Access & Authentication

Configure App Information

Feishu sign-in app configuration
Enter the following information:
FieldRequiredDescription
Display nameYesThe identity source's name in Qoder, which helps administrators distinguish identity sources. The default is “飞书企业通讯录” (Feishu Enterprise Directory); you can change it.
Enterprise numberYesThe number of your current Feishu enterprise.
App IDYesThe identifier of the Feishu custom app.
App SecretYesThe app secret paired with the App ID. The value is hidden by default and can be temporarily revealed when needed.
The page also generates a callback URL:
URLConfiguration requirement
Callback URLCopy the actual value generated on the page and add it to the Feishu app's redirect URLs.
Always copy the complete URL generated by the current Qoder page. Do not use example URLs from this guide, screenshots, or demo environments. Do not modify the protocol, domain, port, or path.

Configure the Redirect URL in Feishu

Keep the Qoder configuration window open and complete these steps in the Feishu app details:
  1. Copy the Callback URL displayed in Qoder.
  2. In the Feishu app details, open Security Settings > Redirect URLs.
  3. Paste the URL, click Add, and save.
Return to Qoder and click Next. If the display name, enterprise number, 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.
PermissionScopeRequiredApproval required
Read basic contact informationcontact:contact.base:readonlyYesNo
Read user IDscontact:user.employee_id:readonlyYesNo
Read basic department informationcontact:department.base:readonlyYesNo
Read department organizational structurecontact:department.organize:readonlyYesYes
Read basic user informationcontact:user.base:readonlyYesNo
Read user organizational structurecontact:user.department:readonlyYesYes
Read user email addressescontact:user.email:readonlyYesNo
Read user phone numberscontact:user.phone:readonlyNoYes
Read user employment informationcontact:user.employee:readonlyNo, unless email is mapped to enterprise_emailYes
Reading user email addresses is required to associate Qoder accounts. If you map email to 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:
  1. In the app details, open Permissions and click Enable Permissions.
  2. Under app identity permissions, search for each scope in the table, select it, and confirm.
  3. On the Permissions page, click Configure beside Accessible Data Scope, select Same as the App's Availability Scope, and save.
  4. Open App Release > Version Management & Release, click Create Version, set the app's availability scope, and request publication.
  5. 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.
The app's availability scope determines which members and departments Qoder can read and which members can use Feishu to sign in. Select all members if you need to connect the entire enterprise directory; otherwise, select the members who need Qoder. To change permissions or availability scope later, update the Feishu app and publish a new version, then return to Qoder to check authorization again.
Enable only the permissions listed on the Qoder page. Do not select unrelated permissions.
For details about requesting and approving permissions, refer to the Feishu Open Platform guide to requesting API permissions. After requesting permissions, return to Qoder and check each permission's authorization status. If a permission is unauthorized, confirm that it is enabled in Feishu and that the app version has been published and approved, then check again.
Feishu identity source API authorization status

Configure Field Mappings

Field mappings determine which Qoder identity fields receive Feishu member attributes. Configure these two account fields:
Qoder fieldAttribute pathFeishu fieldConfiguration
emailuser.emailemail or enterprise_emailRequired. Used as the unique identifier for account association.
displayNameuser.displayNameUsually nameDetermines the member's display name in Qoder.
Feishu identity source account field mappings
Keep the mapping rule set to Field Mapping and select the corresponding Feishu source field. You do not need to map phone numbers on this page. If you enable the permission to read user phone numbers, Qoder reads them using its default rules. Both 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.
Choose the email field that reliably matches members' Qoder accounts. If your organization consistently uses Feishu enterprise email and 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.
Click Complete Integration, then close the configuration window. It may take a few minutes for the Feishu sign-in status to appear on the settings page. Refresh the page if the status does not update for an extended period.

Verify Feishu Sign-in

After completing the integration, test the sign-in flow with one member:
  1. Under Settings > Security & Identity > Access & Authentication, confirm that Feishu sign-in is enabled.
  2. On the Qoder sign-in page, have the test member select enterprise sign-in and enter a corporate email address under a verified domain.
  3. After the page redirects to Feishu authentication, scan the QR code with Feishu to sign in.
  4. 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.
Feishu identity source details and management actions
The details page includes:
SectionDescription
Basic informationDisplay name, enterprise number, identity source type, and connection time. You can change the display name.
App credentialsThe current App ID and App Secret. You can update them, but both new values must belong to the same Feishu custom app.
Callback configurationThe current callback URL. Keep the Feishu app's redirect URL consistent with this value.
API permission configurationEach 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 mappingsCurrent account field mappings. Click Edit to change them.
Use the controls in the upper-right corner to enable, disable, or delete the identity source. Deletion cannot be undone. To reconnect after deletion, add and configure the identity source again.

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:
  1. The credentials configured in Qoder belong to the Feishu app you are authorizing.
  2. All required permissions are enabled in that app's permission settings.
  3. An app version has been created and published, and permissions requiring review have been approved by a Feishu administrator.
  4. Return to Qoder and check the authorization status again.

Why Can Some Members Not Sign In Through Feishu?

Check the following in order:
  1. The member is within the Feishu app's availability scope. Changes to this scope require publishing a new app version before they take effect.
  2. 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.
  3. 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.