sqs.receiveMessage({QueueUrl: "https://sqs.eu-central-1.amazonaws.com/xxx/LdapConnector.fifo"}, function (_, data) {
data.Messages.forEach(message => {
var directoryEvent = JSON.parse(message.Body)
console.log(`⭐ Received directory event of type ${directoryEvent.EventType}`)
switch (directoryEvent.EventType) {
case 'NewEntities':
directoryEvent.DsEntities.forEach(
(entity) => console.log(`${entity.Name} was added`))
case 'ChangedEntities':
directoryEvent.DsEntities.forEach(
(entity) => console.log(`${entity.Name} was updated`))
case 'DeletedSyncEntities':
directoryEvent.DsSyncEntities.forEach(
(entity) => console.log(`${entity.Entity.Name} was removed`))
}
});
})
Use Cases
Anytime you need to provision users or need access to a company’s snapshot of all employees and their respective groups, you need the data from your LDAP directory. Some uses cases for LDAP Connector can be:
- Automate User Onboarding: Mass add users in your organization to your on-prem or SaaS applications.
- Payroll and expense tracking: Get up-to-date data of all employees in your organization when payday comes around.
- Access Control: Synchronize security and access control systems such as turnstiles, security gates and other locked resources.
- Your own business related applications: whatever your particular scenario or business use case may be, if you need access to the data in your company’s directory, LDAP Connector will help you synchronize it.