How the Add people dialog searches your directory
An IT or platform lead who wants hosts to find colleagues in the Add people dialog, rather than typing email addresses, needs a search service that sits between Jitsi Meet and the directory. The Add people dialog sends the user's query, the requested query types and the user's JWT to a peopleSearchUrl service and expects JSON results back. The feature is available only to non-guests, and it depends on enableUserRolesBasedOnToken, so a host must arrive with a valid token that identifies them as a user rather than a guest. Without that setting, the dialog will not behave as a directory lookup for signed-in staff.
The search service is yours to build or host. Jitsi supplies the dialog and the request, but it does not ship a directory connector, so the service decides which people appear, how results are ranked, and what fields are returned. That makes it a data-access component with its own access controls: it should check the JWT it receives, limit results to people the host is allowed to invite, and avoid returning fields such as personal contact details that the dialog does not need. Ask who in your organization will own the service, how it will be deployed and logged, and how its results will be reviewed before go-live.
Before design starts, confirm the exact request parameters, the expected JSON response fields, and any error behavior against the video SIP gateway page of the Jitsi handbook, linked from this section's source list. Treat those fields as the contract. Also confirm which Jitsi release your deployment runs, because the handbook page is the reference for the version you install. A prototype that mirrors your directory schema without checking the contract is likely to need rework once the dialog is wired into a live Jitsi Meet instance.
What you need before the people search service
The people search and invite service sits on top of a working self-hosted Jitsi Meet. Four parallel prerequisites must be in place first: a secure web tier, token-based authentication, a directory that answers searches, and a network path between them.
Working self-hosted Jitsi Meet over HTTPS
Confirm a self-hosted Jitsi Meet runs on a proper domain certificate. The Jitsi handbook says HTTPS with a valid certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile clients. Check that the web server, Prosody, Jicofo and at least one videobridge are healthy before adding any search logic. Confirm the exact release and build number you run, because the handbook's guidance and the Docker layout can change between stable releases.
Debian quick startJWT token authentication in place
The people search dialog is available only to non-guests and depends on enableUserRolesBasedOnToken, so a JWT must identify the signed-in user. The Jitsi Docker guide configures authentication through the .env file, and the handbook recommends JWT token authentication over the deprecated secure domain method for new installations. Confirm that tokens are issued, verified and carry the user claims your directory lookup needs, and that guests use the separate anonymous domain.
Token authentication docsDirectory API and a named owner
Decide which system answers searches for people, such as your HR system, identity provider or an internal directory service. It must accept the query and requested query types, check the user's JWT, and return JSON results in the shape Jitsi expects. Name the team that owns that endpoint, its schema and its access rules. Ask who approves changes to returned fields, since search results expose employee names and contact details to every signed-in participant who opens the dialog.
Network path from the web tier to search
The request to the peopleSearchUrl service originates from the Jitsi web tier, so the search endpoint must be reachable from that host or container, not only from the user's browser. Map the route through firewalls, proxies and any DNS split between internal and external names. Confirm TLS on the search endpoint and whether the certificate chain is trusted by the Jitsi host. Test the path from the exact host that serves the web app, since a route that works from a laptop can still fail from the server.
Video SIP gateway and room system access
If meeting room devices will also be called through the video SIP gateway, plan that access separately from the search service. The handbook's video SIP gateway page covers how room systems join. Identify which accounts, ports and credentials the gateway needs, and who owns them. Keep these credentials apart from the directory service account so a compromised device cannot query the full directory.
Video SIP gateway docsHow a people search request flows from the dialog to your directory
The request starts in the host's browser when they type into the Add people dialog. The Jitsi web app sends the query, the requested query types and the user's JWT to the peopleSearchUrl service, which sits outside the Jitsi deployment and queries your directory. The service returns JSON results that the dialog displays. Check that the service validates the JWT before it queries the directory, and note that guests never see this dialog because the feature requires a non-guest role from the token, through enableUserRolesBasedOnToken.
Request path from the Add people dialog to the directory and back.
Configuring peopleSearchUrl and token roles in order
This sequence takes a self-hosted Jitsi Meet from working token authentication to a verified Add people dialog that only non-guest users can see. Each step ends with a check you can run before moving on, so problems surface at the layer where they start.
Confirm token authentication works for a non-guest user
Start by proving that a signed JWT for a named, non-guest user lets that person create or join a room on your domain. Your identity owner or the engineer who configured authentication should run this, using a token issued by your own signing process. Check the Prosody and web configuration against the token authentication guide in the Jitsi handbook. On a Debian package install, the relevant settings live in the Prosody virtual host file and the web configuration under /etc/jitsi. On a Docker install, they are set through the .env file and the Prosody and web container configuration. Done means the test user opens a room with a valid token, appears as a signed-in participant, and a request with a bad or expired token is refused.
Enable user roles based on the token
Turn on enableUserRolesBasedOnToken so Jitsi reads the user's role and identity from the JWT rather than treating every token holder the same. The Jitsi video SIP gateway documentation describes this setting as the prerequisite for the Add people dialog, which is available only to non-guests. In a Debian package install, set the flag in the frontend config.js file under /etc/jitsi/meet. In a Docker install, set the corresponding value through the web service configuration, typically driven by the .env file. Done means that a non-guest token shows the Add people option in the toolbar, and a token with the guest role does not.
Build or select the people search endpoint
Provide an HTTP service in your environment that accepts the user's query, the requested query types and the user's JWT, then returns JSON results that Jitsi can display. Your directory or identity team should decide which system is queried, such as your identity provider or HR directory, and how the service validates the JWT before returning any data. Confirm the exact request and response fields with the video SIP gateway page in the Jitsi handbook before you write code, because field names and expected result structure are defined there. Done means the endpoint returns correct JSON for a known name when called directly with a valid token, and returns an authorization error when the token is missing or invalid.
Set the peopleSearchUrl value
Point Jitsi at the endpoint by setting peopleSearchUrl to its full HTTPS address. This value belongs in the frontend configuration: config.js in a Debian package install, or the web service configuration in a Docker install. Use a certificate issued for a proper domain, because self-signed certificates cause problems for Jitsi clients, and the handbook warns about this for mobile clients in particular. Restart or redeploy the web layer so the change is loaded. Done means the browser's network inspector shows the web app loading the configured value, and a request to the endpoint appears when the dialog is opened.
Test the dialog with a known name in a test room
Sign in as a non-guest test user in a test room and open the Add people dialog. Search for a name you know exists in the directory and confirm the expected match appears in results. Your platform or identity engineer should run this and capture the request and response in the browser's developer tools to compare with the endpoint's logs. Also test a name with no match and a deliberately bad token. Done means the known name returns the expected entry, the empty query returns a clean empty state, and the bad token produces no results, with each outcome matching the endpoint logs.
Verify guest sessions do not see the dialog
Open the same room as a guest, either through the anonymous domain or with a token that carries the guest role, and confirm the Add people option is absent from the toolbar and the dialog cannot be reached. Also check that the peopleSearchUrl request is not made from the guest session. A security or compliance reviewer should repeat this check after every configuration change. Done means the guest session shows no Add people entry, the browser shows no call to the search endpoint, and the result is recorded with the date and build version of your deployment.
What the search request and JSON response must contain
The Add people dialog sends three inputs to your peopleSearchUrl service: the user's query text, the requested query types, and the user's JWT. The service must treat the JWT as the proof of who is asking, so the first job of the endpoint is to verify the token before it reads the query. Check the signature against the key or secret your Prosody configuration uses, confirm the issuer and audience match your deployment, and reject tokens whose expiry has passed. Confirm the exact claim names and token behavior against the Jitsi handbook page on the video SIP gateway, since the handbook is the only source for the request and response format this integration should follow. A rejected token must return an error status, not an empty list, so the host can tell an authentication problem from a search with no matches.
The service must return JSON results in the shape the handbook documents. Use the field names and structure given there, and do not infer extra fields from a sample you have seen elsewhere. Any sample payload you write for internal review should be labeled as illustrative, and checked against the handbook before it reaches a developer. Also confirm with your own test client what the dialog does with each field, because a mismatch between the expected and returned names shows up as missing results rather than as a visible error. Keep the response small and limited to what the dialog needs, since the results are shown to a host in a live meeting.
Host experience depends on how the three failure modes reach the dialog. An empty result should be a valid JSON response with no matches, which the dialog shows as no people found. An error, such as a rejected JWT, a server fault or a malformed response, should produce a non-success status so the host sees that the lookup failed and can retry or type an address directly. A slow response is the case most likely to be missed in testing, because the dialog waits on the network while the host is typing. Measure response time under realistic directory load from the meeting network, set a server-side timeout on directory queries, and confirm with your Jitsi version how long the client waits before giving up. Record these three behaviors in your acceptance tests so each one is verified before go-live.
Mapping JWT claims and directory attributes to search results
This table pairs each directory attribute with the JWT claim or role it feeds and the field the Add people dialog displays. Read it as a worksheet: each row needs a named owner who confirms the mapping before the peopleSearchUrl service goes live. The main takeaway is that the mapping depends on the directory in use, so its attribute names must be confirmed with that directory's administrators.
| Directory attribute | JWT claim or role | Search result field | Mapping owner |
|---|---|---|---|
| Display name (for example, cn or displayName) | Name claim in the user's JWT context | Name shown beside each result | Directory administrator with the service team |
| Email or unique identifier (for example, mail or userPrincipalName) | Email claim, used to match the invited person | Email or ID used to invite the person | Identity team and privacy or security lead |
| Organizational unit or group membership | Group or team claim, if your token issuer includes it | Department or group label, if the service returns it | HR or directory owner for the group model |
| Account status (active, disabled or contractor) | Filter applied by the search service before results return | Only active accounts appear in results | Identity administrator and compliance lead |
| Role that marks the user as a non-guest (for example, a moderator or staff role) | Role or flag tied to enableUserRolesBasedOnToken | Controls whether the Add people dialog is available to this user | Security owner for Jitsi access policy |
| Search scope (which directories or OUs the service may query) | Limited by the service's own configuration, not a claim | Result set size and coverage | Directory owner and data protection officer |
Calling room systems through the video SIP gateway
In this model, the Add people dialog queries your directory through the peopleSearchUrl service and shows matching colleagues to moderators who are signed in with a token. The gateway is not involved, so no room system is called. The directory service is the only component that answers the search request, and it returns JSON that Jitsi displays in the dialog. Users who join as guests do not see this dialog, because the feature depends on enableUserRolesBasedOnToken and is available to non-guests only.
- Who sees results: Only signed-in users with a valid JWT see directory matches, so token claims decide the audience.
- Who answers the query: Your own service owns the search logic, access checks and response format.
- Network path: The search request runs between the browser and your directory service, so confirm the service is reachable from the users' networks.
- Telephony: Nothing is dialed, so no SIP credentials or gateway ports are needed.
- Data exposure: Decide which directory fields are returned, since every field in the JSON response reaches the browser.
Before launch, confirm with your identity team which query types the service must support and which directory attributes may appear in results.
In this model, a participant invites a meeting room system, such as a conference endpoint or a SIP device, to join the Jitsi meeting. The video SIP gateway places the outbound call and bridges the room system into the conference. This path does not use the people search service. The gateway component and its credentials must be configured and reachable before the room system can answer. The video SIP gateway page in the Jitsi handbook is the primary reference for the setup steps, and the Jigasi and Jibri pages in this series cover the ports and credentials each component needs.
- Component: The video SIP gateway carries the call, and its configuration sits in the deployment, not in the directory service.
- Credentials: The gateway needs its own account and secrets, which should be stored in your secrets manager and rotated on a schedule.
- Ports: Confirm each port the gateway and the room system require against your firewall rules before testing.
- Concurrency: Jibri's README states that one recording runs at a time on a single Jibri, so confirm how many simultaneous room calls one gateway instance can handle.
- Room system vendor: Ask the vendor which SIP registration, codec and encryption settings its device supports.
Check that a test call from the room system completes end to end, with audio and video, before it reaches users.
The combined model uses both paths in one meeting. A moderator searches the directory to add colleagues, then uses the dial-out path to bring a room system into the same conference. Each path keeps its own component, so a failure in one does not automatically stop the other. Access rules must be consistent, because a directory result and a room call can both reach the same meeting. Plan the two flows together so the moderator sees one clear invitation process, even though the components behind them differ.
- Shared token rules: Use the same JWT claims for directory access and for permission to start outbound calls.
- Separate failure handling: A directory outage should not block room calls, and a gateway outage should not block search.
- Audit trail: Log directory queries and outbound calls separately so reviewers can tell which path added each participant.
- Capacity: Size the gateway for the peak number of simultaneous room calls, not only for the number of meetings.
- Vendor coordination: Confirm the room system vendor's support for calls that join a meeting already in progress.
Before approval, ask your security and telephony owners to review one written flow for each path and the shared token rules.
Hardening the people search endpoint and token trust
The peopleSearchUrl service receives user queries and JWT tokens, and it returns directory data to people who can start meetings. The cards below cover the controls that keep that path trustworthy, from token verification to credential handling and audit. Each one is a check your team can run against its own deployment before the Add people dialog goes live.
Verify token signature and expiry
Your search service should validate the signature and the exp claim of the user's JWT on every request, not only at login. Confirm that it checks the issuer and audience you configured for Jitsi and rejects tokens signed with keys outside your key set. Test with an expired token and with a token signed by a different key, and confirm both return an error without any directory results. The Add people dialog only appears for non-guests, so the token's role claims also need to be checked, since the dialog relies on enableUserRolesBasedOnToken.
Restrict the endpoint to the web tier
Place the search service on a network path that only the Jitsi web tier can reach. A network policy, security group or firewall rule should allow connections from the web server host or pod and deny everything else, including the public internet and meeting participants' networks. Confirm the restriction with a connection test from an outside host and from a participant's network, and document which addresses are allowed so the rule survives infrastructure changes.
Limit returned fields to invite needs
A host adding someone to a meeting usually needs a display name, a contact identifier and perhaps an email address. Return only those fields and exclude attributes such as manager, phone numbers, employee IDs, group memberships or account status unless your invite workflow needs them. Review the JSON response shape with your directory owner, and confirm the search matches only the query types you have enabled, so that a broad query cannot list the whole directory.
Rate limit and log every query
Set a per-user rate limit on search requests so that a script or a compromised token cannot enumerate the directory quickly. Log the authenticated subject, the query text, the query types, the result count and the timestamp for each call, and send those logs to the same store that holds your Jitsi server logs. Ask your security team which retention period applies to these logs, since the service decides how long query history exists.
Keep directory credentials out of Jitsi
The service that queries your directory needs a bind account or API credential. Store that credential in your secrets manager or in the service's own protected configuration, not in the Jitsi .env file, config.js or Prosody configuration, which are read by the web and XMPP components. Use a read-only account scoped to the search base, rotate it on a schedule your identity team sets, and confirm that Jitsi containers and packages never receive the value.
Confirm guests cannot reach search
Test the Add people dialog with a guest session and with a user on the anonymous domain. Both should be unable to call the search service, either because the dialog is hidden or because the service rejects requests without a valid non-guest token. Make this a repeatable test, and rerun it after each Jitsi upgrade or change to the JWT settings, because a changed claim mapping can quietly expose the search to users who should not have it.
Why the Add people dialog returns nothing or fails
This table maps the symptoms operators usually see in the Add people dialog to their likely causes and the check or fix for each. Read it from the top down, starting with whether the dialog appears at all, then whether the search returns results, and finally whether the request itself reaches and parses correctly. The main takeaway is that most failures trace to token settings, guest classification, or the network path from the web tier to your directory service.
| Symptom | Likely cause | Check or fix |
|---|---|---|
| Add people dialog missing for a logged-in user | enableUserRolesBasedOnToken is not enabled, so the user is treated as a guest | Confirm the setting in config.js and that the user's JWT carries the role claims your deployment expects. Test with a non-guest account. |
| Search returns no results | JWT rejected by the search service, or the token audience, issuer or signing key does not match | Verify the token signature, issuer and audience against the values set in Prosody. Decode a sample token and compare claims with the search service's expectations. |
| Search returns no results | Query type requested by Jitsi is not handled by the search service | Check which query types the dialog sends with the request and make sure the service answers each one, or returns an empty list rather than an error. |
| JSON parse error in the dialog | Response format does not match the JSON structure Jitsi expects | Capture the raw response from the search endpoint and compare its fields and nesting with the documented format. Confirm the Content-Type header is application/json. |
| Request times out | The peopleSearchUrl host is unreachable from the web tier, often due to DNS, firewall rules or a different internal network segment | Test the URL from the web server host with curl. Confirm routing, firewall rules and that the service responds within the time your users expect. |
| Certificate or mixed content error in the browser | The search endpoint uses a self-signed certificate, or the page is HTTPS while the endpoint is HTTP | Serve the endpoint over HTTPS with a certificate from a trusted authority, as the Jitsi handbook recommends for working audio and video. Match the URL scheme to the page scheme. |
What buyers ask before connecting Jitsi to a directory
How much effort does connecting Jitsi to a directory take?
The effort depends mainly on how complex your directory is, how many query types you expose, and how strictly you review who can see what. A single directory with one query type and clean user attributes is a small, well-bounded task. A directory spread across several identity sources, with departments, external contractors, shared mailboxes and role-based visibility, adds design work before any code is written. The peopleSearchUrl service must accept the user's query, the requested query types and the user's JWT, then return JSON results, so each query type needs its own mapping from directory attributes to the response fields. Access reviews add effort because someone must confirm that search results match each user's rights and that the token claims behind them are correct. Ask a partner to break the effort into directory mapping, service build, token configuration, testing and handover so you can see where the time goes.
Can our internal team connect Jitsi to our directory without a partner?
A team that already runs Jitsi and owns the directory can do this internally if it has engineers comfortable with JWT claims, HTTP services and the directory's query model. The Jitsi handbook documents the request and response behavior and the need for enableUserRolesBasedOnToken, so the steps are known. The risk lies in the gaps between teams: the people who run the directory rarely own the Jitsi token settings, and the people who run Jitsi rarely own the search service's data handling. A partner is useful when those responsibilities need a written split, when the service must be tested against adversarial queries, or when the internal team lacks capacity for a build that must also be documented for audit. Either way, decide who owns the service after go-live before the build starts.
What do we need from the directory owner and the Jitsi operator?
The directory owner must supply the attribute model, the list of searchable fields, the rules for which users can see which records, and a test account set that covers guests, standard users and restricted users. The Jitsi operator must supply the current Jitsi configuration, the JWT issuer and audience settings, the list of rooms and domains that will use search, and a staging environment where the integration can run without touching live meetings. Both parties should agree on who approves changes to the search service and who receives alerts when it fails. Without these inputs, a partner or internal team will spend most of its time discovering rules that should have been written down, and the scoping estimate will be unreliable.
How long does it take to scope and test a directory integration?
The duration depends on the directory and on the number of query types, so it must be quoted from a written scope rather than assumed from another project. Scoping covers the attribute review, the access rules and the token design. Testing covers normal searches, empty and malformed queries, users with partial rights, and failures of the directory itself. Each of these areas can expand when the directory has multiple sources or unusual attribute formats. Ask the partner to state the assumptions behind its duration, the inputs it needs from you before it starts, and the points at which work pauses for your approval. A written scope makes those assumptions visible and lets you compare proposals on equal terms.
Does connecting a directory change how guests join Jitsi meetings?
The Add people dialog is available to non-guests and relies on enableUserRolesBasedOnToken, so guests who join without a valid token do not get the directory search feature. Guests can still join the meeting if your authentication settings allow it, but they should not be expected to see directory results. Planning for guests means deciding which domain they use, whether they arrive through the anonymous domain described in the Jitsi handbook, and how moderators admit them. Confirm this behavior in your own environment during testing, because the exact result depends on your token and room configuration. Document the guest experience so support staff can explain why the dialog is missing for some participants.
How do we ask a partner for a quote on this integration?
Send the partner a written description of the directory, the query types you want, the users who will search, the Jitsi deployment type and the environments you have. Ask for a fixed-scope proposal that lists deliverables, assumptions, exclusions, acceptance tests and the timeline agreed before work starts. DeployOpen plans and delivers most engagements as fixed scope, with scope, deliverables and timelines agreed in writing before work begins, and it does not publish a price list, so the quote follows from that written scope. Ask what is one-time work and what recurs, such as maintenance of the search service, token key rotation support or retainer-based updates. Request the names of the systems that must be changed and the acceptance criteria, so you can judge the proposal against your own requirements.
How DeployOpen scopes and delivers the people search integration
DeployOpen plans, builds, tests and documents the Jitsi people search and invite integration inside your own infrastructure, so your team can review every request and response before it reaches users. Engagements are fixed-scope, with the endpoint, JWT settings and SIP gateway work agreed in writing before any build starts.
How we scope
- Confirm which directory sources the peopleSearchUrl service will query and who owns each one.
- Agree the JWT claims, user roles and non-guest access rules the Add people dialog depends on.
- Document whether room system calling through the video SIP gateway is in or out of the written scope.
How we build
- Build the peopleSearchUrl service to accept the query, requested types and user JWT, returning JSON results.
- Configure enableUserRolesBasedOnToken and token settings so guests never reach directory lookups.
- Test search responses against real directory edge cases such as empty queries, large result sets and errors.
How we hand over
- Deliver the service code, configuration files and a written request and response reference for your engineers.
- Provide a test plan covering guest, non-guest and invalid token sessions with recorded results.
- Walk your operations team through logs, failure modes and the steps to rotate signing keys.
How we support
- Offer ongoing support, upgrades and continuous testing of the integration as a retainer.
- Retest the people search endpoint after each Jitsi Meet release you adopt in your environment.
- Review directory schema or access policy changes with your security team before they go live.

