Openfire user import

I would like te be able to mass import all users from active directory into openfire spark to where the users won;t have to add users manually but have all users in their list from the start. Is there a way to mass import all users into a file and add it to the users “buddy list”?