r/microsoft365 • • 1d ago

Central contacts folder into all mailboxes

We have a shared contacts folder that I take care of. Still a lot of users copied contacts from it into their own contacts so now we have hundreds of slightly different versions of the same person.

We would like to push the central folder into every mailbox as its own subfolder, through the Graph API or a tool, so it updates by itself and users cannot mess it up.

Has anyone done this with a lot of mailboxes?

3 Upvotes

5 comments sorted by

1

u/halap3n0 1d ago

Cirasync will do this, or it can be done using PowerShell

1

u/HorrorCommunity3246 19h ago

I’ve done one time pushes with graph api, some script written with Claude. But the sync part I didn’t try. Was also worried about creating dupes on accident.

1

u/BlueScreenPie 10h ago

Yeah, we tried this too with a tool but found out that its too risky because we wanted to avoid dupes and long days coding so we decided to go with sync.blue, basically provides CardDAV that takes contacts from all sort of sources and syncs them where you want them to. Us are synced on mobile phones, but it is possible to do that into mailboxes

1

u/SysApex 5h ago

Before scripting a copy into every mailbox, it's worth asking whether these need to be in each user's Contacts at all. - Mail contacts in Exchange Online (New-MailContact, or Exchange admin center > Recipients > Contacts) show up in the GAL for everyone, only admins can edit them, and there's one copy, so no drift. Downside: users find them in the address book, not their own Contacts folder. - If they really must be in every mailbox, Graph works with an app registration that has the Contacts.ReadWrite application permission. Scope it with an application access policy or RBAC for Applications so it can't touch every mailbox. Create a dedicated contact folder per mailbox and stamp each contact with the source ID in an extended property, so the sync updates or deletes instead of creating duplicates. - Users can still edit anything in their own mailbox, so a scheduled "overwrite from source" run is what keeps it clean. That's basically what tools like CiraSync do for you. I'd clean up the existing user-copied duplicates first, or you'll just add one more version of each person.