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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Appropriate Dynamics 365 API URL to find the system user along with associated contacts

(0) ShareShare
ReportReport
Posted on by 5

I've been looking for an API endpoint in Dynamics365 API which provides us with the SystemUser along with their associated Contacts. Please redirect me to an appropriate documentation. 

For ex. EmailID xyz@abc.com should be the input parameter of the API and this endpoint should return all the contacts associated with it.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Dynamics365 API,

    I'm not sure what's their associated Contacts mean, the Contacts  created by the User or the Contacts' owner? But I think $expand could do this. Below this is the URL which gets the users filtered by Email along with the contacts whose owner is him.

    var url = "https://xxxx.crm.dynamics.com/api/data/v9.2/systemusers?$select=fullname&$filter=internalemailaddress eq '"   email_address   "'&$expand=contact_owning_user($select=fullname)";
     

    Reference:

    Retrieve a table row using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs

    systemuser EntityType (Microsoft.Dynamics.CRM) | Microsoft Docs

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Dynamics365 API,

    If you think my answer help you, please verity it. Thanks a lot.

    Screenshot-2022_2D00_03_2D00_09-152235.png

    If you have any other doubt related to this issue, feel free to ask.

  • Dynamics365 API Profile Picture
    5 on at

    Hey Steve,

    I was looking for a API endpoint that would give me the list of active contacts associated with the system user.

    From the UI the page looks like this, although in this case it is empty for other accounts it shows a list of contacts. I was looking for an endpoint to return this same data from API.

    pastedimage1646829646946v2.png

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    Dynamics can be queried using IOrganizationService or the Web API endpoint, here a docs page regarding Web API:

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/overview

    to create the Web API queries you can use my tool Dataverse REST Builder (link in my signature), if you need to use IOrganizationService (usually with the official C# SDK) there are plenty of examples like blog posts and videos on how to use the CrmServiceClient object

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hello,

    Please use below endpoint for your requirement -

    org50b8451e.crm8.dynamics.com/.../contacts eq 0 and Microsoft.Dynamics.CRM.EqualUserId(PropertyName='ownerid'))

    Replace instance url with your crm instance url.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 172

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans