Note: Replace the variable with your Office 365 tenant name in all the occurrences and provide your own admin credentials. Export my site collections to text file.Find if OneDrive is provisioned or not.Fetch all SharePoint Online users using UserProfileService.Steps to Export OneDrive for Business Provisioned Users If you need solution without CSOM, you can refer this post: Find and Export all OneDrive for Business users using Powershell Note: The below script use CSOM (Client Object Model) code to retrieve all OneDrive sites. You can get all the SharePoint Online users using SharePoint UserProfileService and look for the Personal Space object, users who have OneDrive for Business site alone have value for this property and other users do not have this property. As you know SharePoint is base for OneDrive as like some other services (Office 365 Groups, Planner, Teams, and etc.), so it’s users basic profile information obviously will be stored in SharePoint. We can get the list of users with OneDrive for Business feature provisioned by using SharePoint Online UserProfileService with Powershell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |