Ldap user/group sync from backend

Hi,

Is there a way that we can sync new ldap user/group from backend instead of doing it from UI?

I mean by running a command at server where HUE is installed by giving the user name or group name as argument.

Any help is appreciated.
@Romain

Thanks