I am trying to export users using pipeline. Pipeline is running fine but I cant see any files to output folder. And if I export users locally it is running fine.
Hard to say without seeing the pipeline output. Have you granted appropriate graph permissions plus contributor permissions for the pipeline account in your project?