If you need to ensure that users have the correct Office 365 licenses assigned, and that licenses are automatically revoked as users are deprovisioned, then look to a third-party solution, such as Softerra Adaxes, to automating licensing.
Delegating access to Active Directory (AD) usually involves deciding which permissions to assign users so that they can perform a restricted set of tasks. However, providing access to AD also requires you to think about the appropriate management tool and user interface.
Due to the nature of the tasks Active Directory (AD) performs as an identity management solution, inactive objects are not only an inconvenience, cluttering the directory with outdated and unused objects, but also pose a security risk. Third-party AD management solutions, such as Softerra Adaxes, can take much of the risk out of the process.