Table of Contents
Kanboard is able to load groups from an external system. This feature is mainly used for project permissions.
Project managers can allow access to a project for a group. The end-user will use an auto-complete box and search for a group.
Each time a group query is executed, all registered group providers are executed.
GroupManager
class will execute the query across all registered group providersInterface to implement: Kanboard\Core\Group\GroupProviderInterface
.
Classes that implements this interface abstract the group information, there are only 3 methods:
getInternalId()
: Get internal database id, return 0 otherwisegetExternalId()
: Get external unique idgetName()
: Get group nameKanboard will use the external id to sync with the local database.
Interface to implement: Kanboard\Core\Group\GroupBackendProviderInterface
.
This interface requires only one method: find($input)
. The argument $input
is the text entered from the user interface.
This method must return a list of GroupProviderInterface
, this is the result of the search.
In the method initialize()
of your plugin register your custom backend like that:
$groupManager->register(new MyCustomLdapBackendGroupProvider($this->container));