web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Leah Ju Profile Picture
    Microsoft Employee on at

    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 

  • Shaik Profile Picture
    on at

    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)

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    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
    on at

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

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans