Forum Discussion
Re: M365 - Export all contacts from my users
I don't have experience in this particular action yet, but can you specify the name of the contact folder in the script? Check for contacts folder, if not present use contactpersonen?
2 Replies
- SteinG645Copper ContributorMy collegue (far more technical than me) wasn't able to find a way via the script to change the name for the searched store (from contacts to contactpersonen) 😞
- aterneuzenBrass ContributorEven when you do a get-mailbox you can check for prefered language.
But that on the side.
So if i get it right you want to export from every user there contacts and combine them ?
You could use the graph api.
https://learn.microsoft.com/en-us/graph/api/user-list-contacts?view=graph-rest-1.0
With the first you will get the name: contacts of contactpersonen already in a variable so it doesn't matter then anymore.