Skip to content

Users with a specific email domain should have a server

holema edited this page Mar 24, 2021 · 1 revision

Manage Jitsi Servers with email domains

Set up Jitsi-admin and Keycloak

Add a new group in Keycloak

you need a group for admins which are alloed to creat new servers on the jitsi-admin

new Group

Create new group mapper

Create group mapper

Add now add a admin Users to the group which you just have created

select if you want to allow that all users can create new server or only the admins

set in the env.local: laf_CreateServerOpenToEveryone=0

select which keycloak group a user needs to create a new server. This mostly is called admin.

laf_keycloakGroupToCreateServer=/admin

set an email adress which user can see if they are not alled to setup a new server.

laf_administratorEmail=myAdmin@localhost.de

Connect emaildomains to servers

select the serverId for the server you want to connect with the emaildomain

The ServerId you can find in the database or when you hover over the server setting in the url

start up a console in the jitsi-admin directory and type: php bin/console app:connectServerAndGroups <serverId> <emaildomain>

f.e.: php bin/console app:connectServerAndGroups 1 example.com

remove ServerId from a keycloakgroup

The ServerId you can find in the database or when you hover over the server setting in the url

start up a console in the jitsi-admin director and type: php bin/console app:removeServerAndGroups <serverId> <emaildomain>

Result

now all users with the domain example.com (info@example.com, support@example.com, hans.hase@example.com) can now create Rooms on the server 1