Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

How to sync AD users (employees) to Dynamics 365 marketing dynamic segment contacts

Posted on by

Hello,

We are using Dynamics 365 marketing dynamic segments (contacts) as part of a customer journey Email campaign. As part of customer journey one task is to send an marketing email to all employees, as part of this we would like to sync office 365 users (employees) as contacts into Dynamics 365 marketing segment, is there any way to sync employees (as employees gets added and removed from AD automatically). At present its a manual task to sync contacts 

Appreciate your time and thanks for your help

Regards,

Shaik

  • Shaik Profile Picture
    Shaik on at
    RE: How to sync AD users (employees) to Dynamics 365 marketing dynamic segment contacts

    Appreciate Leah for your explanation, Thanks for taking time to draft steps in detail, it helps.

  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: How to sync AD users (employees) to Dynamics 365 marketing dynamic segment contacts

    Hi Shaik,

    Maybe you can try to use power automate to create one flow to achieve it automatically.

    Example:

    pastedimage1667295192987v1.png

    --There is one trigger-- 'When a group member is added or removed' from the Office 365 Groups connector: 

    https://learn.microsoft.com/en-us/connectors/office365groups/#when-a-group-member-is-added-or-removed 

    Populate the objectid of the group.

    pastedimage1667295475529v4.png

    --’Get user profile (V2)' action, retrieves the profile of a specific user you have added. 

    https://learn.microsoft.com/en-us/connectors/office365users/#get-user-profile-(v2) 

    pastedimage1667295281447v2.png

    --'Add a row' Action, use information from last step to populate columns you want.

    pastedimage1667295340564v3.png

    So you can create one Azure AD Group and add users you need to the group, then the flow will be triggered automatically.

  • Shaik Profile Picture
    Shaik on at
    RE: How to sync AD users (employees) to Dynamics 365 marketing dynamic segment contacts

    Thanks Leah for your response,  as you said we already have flag to identify contacts synced from AD. but before this is there any way to sync AD users to contacts automatically (any OOTB solution)

  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: How to sync AD users (employees) to Dynamics 365 marketing dynamic segment contacts

    Hi Shaik,

    You can add one flag field in the contact entity, which is used to identify the contact is synced from AD users.

    Then you can create one dynamic segment in the marketing, using the flag field as condition to filter contacts.

    https://learn.microsoft.com/en-us/dynamics365/marketing/segmentation-lists-subscriptions#create-and-go-live-with-a-new-segment 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans