web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: Appropriate Dynamics 365 API URL to find the system user along with associated contacts

    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
    RE: Appropriate Dynamics 365 API URL to find the system user along with associated contacts

    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
    RE: Appropriate Dynamics 365 API URL to find the system user along with associated contacts

    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,084 Moderator on at
    RE: Appropriate Dynamics 365 API URL to find the system user along with associated contacts

    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,983 Moderator on at
    RE: Appropriate Dynamics 365 API URL to find the system user along with associated contacts

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 69 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 61

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 54 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans