# Is there an API to get the the mappings of user from Active Directory to Okta?

**URL:** <https://devforum.okta.com/t/is-there-an-api-to-get-the-the-mappings-of-user-from-active-directory-to-okta/19273>\
**Category:** API\
**Created:** [February 7, 2022, 6:35am UTC](https://devforum.okta.com/t/is-there-an-api-to-get-the-the-mappings-of-user-from-active-directory-to-okta/19273 "2022-02-07T06:35:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saisrini98](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@saisrini98](https://devforum.okta.com/u/saisrini98)\
**Post date:** [February 7, 2022, 6:35am UTC](https://devforum.okta.com/t/is-there-an-api-to-get-the-the-mappings-of-user-from-active-directory-to-okta/19273/1 "2022-02-07T06:35:19Z")

</div>

I want to if there is any public API to get the below mapping. This is the mapping of user coming from AD to Okta. The API for this mapping is not available in Okta mapping APIs.  
From the mapping APIs, only the expression of the mapping can be obtained. But I need an API to get the value of that expression for a given user.

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/5/5d91a1a425eecc6e884117c2590e06e80c3bb8ea.png)

---

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://devforum.okta.com/u/warren)\
**Post date:** [February 8, 2022, 5:54pm UTC](https://devforum.okta.com/t/is-there-an-api-to-get-the-the-mappings-of-user-from-active-directory-to-okta/19273/2 "2022-02-08T17:54:40Z")

</div>

If you’re mapping the AD attributes to Okta user profile, you can just retrieve the Okta user profile using the Users API.

> **[Users | Okta Developer](https://developer.okta.com/docs/reference/api/users/#get-user)**
>
> Secure, scalable, and highly available authentication and user management for any app.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 6:11pm UTC](https://devforum.okta.com/t/is-there-an-api-to-get-the-the-mappings-of-user-from-active-directory-to-okta/19273/3 "2024-02-12T18:11:38Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
