# Error when logging in with organization .NET 6

**URL:** <https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942>\
**Category:** Get Help\
**Tags:** dotnet6, login, auth0\
**Created:** [September 2, 2022, 1:10pm UTC](https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942 "2022-09-02T13:10:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![randy.grouls](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/randy.grouls/32/34225_2.png) [@randy.grouls](https://community.auth0.com/u/randy.grouls)\
**Post date:** [September 2, 2022, 1:10pm UTC](https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942/1 "2022-09-02T13:10:04Z")

</div>

I have an organization setup that has a AAD and regular database connection. When redirecting to the organizations login page, I made sure to pass the Organization parameter with the ID. When logging in using an account in either connections is complete I get the following error after redirect:

“OpenIdConnectProtocolException: Message contains error: ‘access\_denied’, error\_description: ‘Cannot read property ‘organization\_uuid’ of null’, error\_uri: ‘error\_uri is null’.”

I don’t understand what I have forgotten to setup in either the dashboard or in code. I am using a .NET 6 application using the Auth0 authentication NuGet package.

---

<div class="post-metadata">

**Author:** ![randy.grouls](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/randy.grouls/32/34225_2.png) [@randy.grouls](https://community.auth0.com/u/randy.grouls)\
**Post date:** [September 5, 2022, 11:15am UTC](https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942/2 "2022-09-05T11:15:58Z")

</div>

The problem was not directly relevant to an Auth0 problem but a custom Auth pipeline Rule that our administators added to the dashboard. This has been solved.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:25pm UTC](https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942/3 "2022-11-04T14:25:43Z")

</div>

Glad you have figured it out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:25pm UTC](https://community.auth0.com/t/error-when-logging-in-with-organization-net-6/89942/4 "2022-11-04T14:25:45Z")

</div>


