Jul 14 2020 09:32 AM
Hi All,
I'm new to SharePoint and I'm trying to automate the process of exporting all the user's information to a CSV file using Powershell. I've got some sample PowerShell script but it doesn't seem to work, assuming it's due to one of the below reasons.
1) Do I have to run PowerShell as admin?
2) Do I have to be an admin on the SharePoint site?
Any other ideas on how to achieve this?
Thanks in advance.
Best Regards,
Abhi
Jul 14 2020 09:39 PM
Jul 15 2020 06:57 AM
Jul 16 2020 01:59 AM
Hi @Abhi04 ,
Yes, You need to have SharePoint Admin rights
and establish the connection to SharePoint Online using Admin Credentials ,to perform Tasks like Exporting SharePoint User Profile information. Also do Check the cmdlets you used and its argument list.
and it is always recommended to use PowerShell as Administrator and use
Powershell ISE (Integrated Scripting Environment) for Automation.
Jul 16 2020 06:51 AM
Hi @gk_vasudev,
Thank you for your response.
Quick question: I'm the owner of the site but not an admin. I can see all the user information on the SharePoint online site. With me having owner rights, is it not possible to export the user profile information in Powershell?
Jul 17 2020 01:42 AM