Importing users into a new XWiki instance

I am having this issue for quite a time now. Currently (mostly during upgrading or server issues) I export whole XWiki page and it’s children which includes users and import into new instance.

Is there any clean way to export just users from old to import into a new XWiki instance.

I went through using CSV but didn’t get how to import it actually. The documentation didn’t help as it is less elaborate. Also I am not sure if that can import passwords too.

Any help is appreciated as it is very urgent.