# Login working in dev, but not prod for some users

**URL:** <https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772>\
**Category:** Ask the community\
**Created:** [April 2, 2025, 12:46pm UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772 "2025-04-02T12:46:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![haider.ahmad](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@haider.ahmad](https://community.appfarm.io/u/haider.ahmad)\
**Post date:** [April 2, 2025, 12:46pm UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/1 "2025-04-02T12:46:18Z")

</div>

So I’m trying to log into prod with certain accounts, but they don’t seem to work, the accounts work fine in dev where i’m using the same b2c logins (Prod). First i was getting “access denied” then later i was getting “cannot load the app, contact support”.

 ![bilde (2)](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/a/ad6740cc4278228c1f8be94cc2d0c1c61bb003c6.png)  
 ![app load](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/ca7bdae71b3703f47f27ac2656a01ef8ace96375.jpeg)

---

<div class="post-metadata">

**Author:** ![haider.ahmad](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@haider.ahmad](https://community.appfarm.io/u/haider.ahmad)\
**Post date:** [April 2, 2025, 12:46pm UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/2 "2025-04-02T12:46:50Z")

</div>

For clarification! The permissions didn’t change between those 2 screenshots.

---

<div class="post-metadata">

**Author:** ![kristian](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/kristian/32/58_2.png) [@kristian](https://community.appfarm.io/u/kristian)\
**Post date:** [April 2, 2025, 1:15pm UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/3 "2025-04-02T13:15:35Z")

</div>

Hi,

Looks like it happens after the login, i.e. my guess is that the permissions setup in Dev and Prod are different, or that Dev have undeployed changes.

So, can you verify that prod have been deployed, and that the permission (which roles have access to which envrironment) are the same?

It could be that when using the prod login in Dev, that you are using a oauth 2 value Secret (e.g. the B2C client secret) that is not environment specific?

---

<div class="post-metadata">

**Author:** ![haider.ahmad](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@haider.ahmad](https://community.appfarm.io/u/haider.ahmad)\
**Post date:** [April 2, 2025, 1:36pm UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/4 "2025-04-02T13:36:14Z")

</div>

It’s been deployed to prod, the prod is up to date, the permissions are also fine and and in the I’m able to log into prod with my account, but another account can’t with another role.

 ![perm 3](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/cb93515c72726523a2b816a30de1d2becc196de8.jpeg)

---

<div class="post-metadata">

**Author:** ![haider.ahmad](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@haider.ahmad](https://community.appfarm.io/u/haider.ahmad)\
**Post date:** [April 8, 2025, 10:29am UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/5 "2025-04-08T10:29:03Z")

</div>

This was fixed in DMs 🙂

---

<div class="post-metadata">

**Author:** ![Theo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/theo/32/1672_2.png) [@Theo](https://community.appfarm.io/u/Theo)\
**Post date:** [April 9, 2025, 7:16am UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/6 "2025-04-09T07:16:44Z")

</div>

Hi Haider! Would you be able to share the solution? 🙂

I think we might be experiencing a similar issue where we have two different users with identical roles, and only one of them are allowed to sign in to production

---

<div class="post-metadata">

**Author:** ![Theo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/theo/32/1672_2.png) [@Theo](https://community.appfarm.io/u/Theo)\
**Post date:** [April 9, 2025, 8:00am UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/7 "2025-04-09T08:00:47Z")

</div>

I had a call with Kristian - Appears to have been some sync issues with one of our accounts, and it should be a limited issue

---

<div class="post-metadata">

**Author:** ![haider.ahmad](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@haider.ahmad](https://community.appfarm.io/u/haider.ahmad)\
**Post date:** [April 9, 2025, 9:33am UTC](https://community.appfarm.io/t/login-working-in-dev-but-not-prod-for-some-users/1772/8 "2025-04-09T09:33:56Z")

</div>

Hello Theo!

My issue was related to the my app and was kind of a special case. I had owner permissions besides the role permission which let me bypass the problem, but the other account only had the user account which made the app crash.
