# Management API call in custom login form

**URL:** <https://community.auth0.com/t/management-api-call-in-custom-login-form/113654>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [August 15, 2023, 10:35am UTC](https://community.auth0.com/t/management-api-call-in-custom-login-form/113654 "2023-08-15T10:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samir.shaikh](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@samir.shaikh](https://community.auth0.com/u/samir.shaikh)\
**Post date:** [August 15, 2023, 10:35am UTC](https://community.auth0.com/t/management-api-call-in-custom-login-form/113654/1 "2023-08-15T10:35:53Z")

</div>

Hi,

We have implemented a custom html+javascript code in custom login form. We want to make auth0 management api call for getting all the enterprise connections setup up. Because based on users email address, we want them to direct to Enterprise connection set for them. There is a management end point for getting all the enterprise connections. End point is “/api/v2/connections”. However this requires access token to make the call.

How can I get the access token in custom login form to make this management api call?

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [August 28, 2023, 9:40am UTC](https://community.auth0.com/t/management-api-call-in-custom-login-form/113654/2 "2023-08-28T09:40:05Z")

</div>

Hi @samir.shaikh

Thanks for getting in touch with us at Auth0 Community.

Please see our docs here as to how you may get an Access Token to query our Management API [https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-production)

It sounds like you are trying to implement functionality similar to our Identifier First/Home Realm Discovery offering, please review our Identifier First documentation first in case this is a better fit for your needs as we can automatically route the user to the correct connection via the domain of the incoming email address [https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first](https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first)

Warm regards.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 11, 2023, 9:41am UTC](https://community.auth0.com/t/management-api-call-in-custom-login-form/113654/3 "2023-09-11T09:41:02Z")

</div>

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