# Is it possible to include organisation prompt link in default login page?

**URL:** <https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765>\
**Category:** Get Help\
**Tags:** organizations, auth0, login\
**Created:** [October 21, 2021, 9:55am UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765 "2021-10-21T09:55:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandhravadanan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chandhravadanan/32/26564_2.png) [@chandhravadanan](https://community.auth0.com/u/chandhravadanan)\
**Post date:** [October 21, 2021, 9:55am UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/1 "2021-10-21T09:55:34Z")

</div>

Hi, Individual users and members of organisation both access my application. I want to include organisation prompt link in default auth0 login page. is it possible or any work around ?

 ![Screenshot 2021-10-21 at 11.54.47 AM](https://global.discourse-cdn.com/auth0/original/3X/2/c/2cee75bfaf797cb5dc8f89feb291c6a844202c67.png)

---

<div class="post-metadata">

**Author:** ![mmarti](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mmarti/32/12765_2.png) [@mmarti](https://community.auth0.com/u/mmarti)\
**Post date:** [October 21, 2021, 5:50pm UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/2 "2021-10-21T17:50:03Z")

</div>

I actually just reached out to Auth0 support a few days asking this. Unfortunately, it’s not possible. ☹

If you set the option to “Both”, you must programmatically pass the organization ID in the request to the `/authorize` endpoint. The only way to show the organization prompt to an end user is to select the “Team members of organizations” option, but obviously that won’t work for your use case (it prevents people from not being part of an org or things like self-service signup).

---

<div class="post-metadata">

**Author:** ![jsw](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jsw/32/12681_2.png) [@jsw](https://community.auth0.com/u/jsw)\
**Post date:** [December 14, 2021, 10:52pm UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/3 "2021-12-14T22:52:07Z")

</div>

I have the same use case. I’d be ok with separate login buttons for individuals and org-members. For the latter, would the expected workaround be to build a form to capture the organization name and then lookup the organizationId by name via `/api/v2/organizations/name/{name}` and if success redirect to `/api/auth/login?organization={id}` (I’m using nextjs-auth0)?

Also, can someone confirm that I need to create a separate machine-to-machine auth0 app in order for my Next.js server-side to access the Management API, given that an organization-enabled app can not use client credentials to access the Management API?

---

<div class="post-metadata">

**Author:** ![ivo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivo/32/45714_2.png) [@ivo](https://community.auth0.com/u/ivo)\
**Post date:** [March 23, 2023, 4:34pm UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/4 "2023-03-23T16:34:20Z")

</div>

Has there been a resolution to this issue? I keep getting ‘parameter organization is required for this client’ even though I pass organization param to login.

---

<div class="post-metadata">

**Author:** ![matt-cbi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matt-cbi/32/45995_2.png) [@matt-cbi](https://community.auth0.com/u/matt-cbi)\
**Post date:** [April 3, 2023, 8:46am UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/6 "2023-04-03T08:46:07Z")

</div>

@ivo for I couldn’t get it to work through the login URL but I could pass the org\_id through the handleLogin function. I am using the npm package so my […auth].ts looks like this:

```auto
import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';

export default handleAuth({
  async login(req: NextApiRequest, res: NextApiResponse) {
    await handleLogin(req, res, {
      authorizationParams: {
        organization: orgId,
      },
    });
  },
});

```

---

<div class="post-metadata">

**Author:** ![lydiaocie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lydiaocie/32/46289_2.png) [@lydiaocie](https://community.auth0.com/u/lydiaocie)\
**Post date:** [April 3, 2023, 10:09am UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/7 "2023-04-03T10:09:04Z")

</div>

Unfortunately, **it’s not possible**. If you set the option to “Both”, you must programmatically pass the organization ID in the request to the /authorize endpoint

---

<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:** [April 29, 2023, 12:03am UTC](https://community.auth0.com/t/is-it-possible-to-include-organisation-prompt-link-in-default-login-page/71765/8 "2023-04-29T00:03:37Z")

</div>

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