Import users from HR SQL table

hello guys,

am still new to one identity manager and am just trying to do a simple user life cycle management scenario of (provision, update and termination)

 I got my environment up and running (1IM_SQL, Manager, APP server, Synchronization Server) but still going through the guide to know how to connect to a SQL table in the synchronization project and being able to connect the AD still not sure am going to need active roles or this could be done from the synchronization project.

would appreciate if there is a clear guide or steps on how to go through this cycle.