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

Get User ID based on email address

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

I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 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
    3,397 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
    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
    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
    3,397 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

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
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans