.. include:: /Includes.rst.txt .. _feature-1791333081: ========================================= Feature: Give roles from directory groups ========================================= Description =========== A directory provider's role mapping now names directory groups by their DN for the roles ``hr`` and ``admin``. At every login and every sync, a linked account holds the role while its entry is in one of the groups, in Active Directory also through nested groups, and loses it when it is in none; the person and the admins are notified. A role whose list of groups is empty is not mapped, and ``manager`` never is. Impact ====== A withdrawal that would leave the company without an HR or admin is refused; the run counts it in ``roleRefusals`` and the admins are notified (``security.ldapSyncFailed``). .. index:: API, package:adsum-ldap