Members and permissions
Control data permissions for Feishu channel users
Use an allowlist and people profiles to control which data Feishu users can query.
After an agent enables the Feishu channel, by default every Feishu user who can reach the bot can ask, and answers use the agent's full data scope. To restrict this, turn on the allowlist, create people profiles for Feishu users, and authorize roles.
Feishu askers use a channel people identity: they do not inherit the data role of a web member with the same name and are not added to the project. Results that scheduled tasks send to Feishu are generated with the task owner's permissions and are not refiltered for recipients.
Prepare
- The agent has the Feishu channel enabled. See Connect a Feishu bot.
- The Feishu app has the
contact:user.employee_id:readonlypermission. The allowlist identifies users by user_id; without this permission, messages are rejected directly and do not enter pending approval. - The data roles to authorize are ready.
- Turning on the allowlist and maintaining people and roles requires a project owner or project administrator.
Entry: open the agent → “Channels” → “People permissions”.
Steps
Turn on the allowlist
Turn on “Enable allowlist”. After that, only people on the allowlist can ask.
Create profiles for askers
With the allowlist on, unauthorized users' questions are rejected and go to “More” → “People” → “Pending approval”. Click “Create profile / Link”, then choose “Create people profile” (name, email, and phone are filled in automatically) or “Link to existing person”.
You can also create people in advance with “New person” under “People” and bind their Feishu accounts.
Authorize a role
After creating a profile, choose a role in the dialog that appears and click “Authorize”; or in the agent's “People permissions”, click “Add person” and choose the person and role. Fill in all required variables of the role.
Choosing no role means using the agent's full data scope, and the list marks it “No role means full access”.
Revoke
- Revoke access to one agent: remove the authorization in that agent's “People permissions”.
- Remove the person entirely: person details → “Danger zone” → “Delete person”; related bindings and authorizations are removed together. If they ask again, they go back to pending approval.
After authorization changes, the agent's Feishu sessions are rebuilt. Users who sent messages before the change only need to send another message to get answers with the new permissions.
Common issues
| Message the user sees | Cause | Action |
|---|---|---|
| No permission; the request was submitted for administrator approval | No people profile yet | Create a profile and authorize in “Pending approval” |
| Not authorized to access this Agent | A profile exists but is not on this agent's allowlist | Add the person in “People permissions” |
| The Feishu app lacks contact:user.employee_id:readonly | The app lacks permission and cannot identify the user | Grant the permission on the Feishu Open Platform and publish a new version |
| The agent was deleted or is unavailable | The agent bound to the channel was deleted | Rebind or disable the channel |
| What the administrator sees | Cause | Action |
|---|---|---|
| Pending approval shows no contact information | Feishu did not return email or phone | Grant contact information permissions on the Feishu Open Platform and publish a new version |
| Everyone can ask after turning off the allowlist | This is the behavior with the allowlist off | Turn on the allowlist and add people |
| No one can ask after turning on the allowlist | The allowlist is empty | Add people |