Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Get User ID based on email address

Posted on by 30

I am looking for a rest API using which I can get the user id of any user based on the email address of the user. I can make the rest API call using the admin account. 

Can anyone please give me a REST API through which I can access the user id of the user by passing the email of any user as the parameter? I don't want to find the user id of the current user. 

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    RE: Get User ID based on email address

    Refer below article and Add filter as email by replacing last name so that you will get the data.

    carldesouza.com/.../

    To get the API info please refer below article..

    functionalthoughts.com/.../

  • Suggested answer
    Naveen Ganeshe Profile Picture
    Naveen Ganeshe 3,393 User Group Leader on at
    RE: Get User ID based on email address

    ok. Take a look at this documentation: learn.microsoft.com/.../query-data-web-api

    Replace the other entity name with users and apply a filter for email in any example from above link

  • Dishant Sharma Profile Picture
    Dishant Sharma 30 on at
    RE: Get User ID based on email address

    I am not using any third-party app. I just want to make an API call from my JS app and get the username of the user by sending the email address of the user as the parameter.

  • Dishant Sharma Profile Picture
    Dishant Sharma 30 on at
    RE: Get User ID based on email address

    Naveen Ganeshe Thanks for the reply. Actually, I am using the 'crm8.dynamics.com' base URL. The above one is not working for me!

  • Suggested answer
    Naveen Ganeshe Profile Picture
    Naveen Ganeshe 3,393 User Group Leader on at
    RE: Get User ID based on email address

    Hi Dishant,

    I believe you are talking about D365 CE.  are you using any third party app to get the detail? You can use the power automate as well to get this info with existing connectors.

    However, If you still want to use rest then here is the service URL: orgname.api.crm4.dynamics.com/.../users you can put any filter in this

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

Product updates

Dynamics 365 release plans