# \*Important\* Can't access User Database UI for \*any\* of my users

**URL:** <https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [May 20, 2025, 1:35am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921 "2025-05-20T01:35:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ausar850](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ausar850/32/71312_2.png) [@ausar850](https://community.auth0.com/u/ausar850)\
**Post date:** [May 20, 2025, 1:35am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/1 "2025-05-20T01:35:04Z")

</div>

After successfully updating the metadata of one of my users using the Management API in Python, I got an error page when visiting any of my users in the Auth0 Dashboard.

The error message: “Error! Cannot use ‘in’ operator to search for ‘take’ in undefined”

I deleted all of my user profiles to try to fix but the message is still appearing and I’m not able to access profiles of new test users I create.

The python code I used to update the user meta data is below (secrets are redacted).

I would appreciate any help on this matter. Feel free to ask any clarification questions as well.

````auto
import requests
import secrets
import string

AUTH0_DOMAIN = ''
CLIENT_ID = ''
CLIENT_SECRET = ''
CONNECTION = 'Username-Password-Authentication' # or your DB connection name
TARGET_EMAIL = ''

# 1. Get Management API Token
token_url = f'https://{AUTH0_DOMAIN}/oauth/token'
token_payload = {
    'client_id': CLIENT_ID,
    'client_secret': CLIENT_SECRET,
    'audience': f'https://{AUTH0_DOMAIN}/api/v2/',
    'grant_type': 'client_credentials'
}
token_res = requests.post(token_url, json=token_payload)
token_res.raise_for_status()
mgmt_token = token_res.json()['access_token']

# 2. Check if user exists by email
headers = {'Authorization': f'Bearer {mgmt_token}'}
search_url = f'https://{AUTH0_DOMAIN}/api/v2/users-by-email'
search_res = requests.get(search_url, headers=headers, params={'email': TARGET_EMAIL})
search_res.raise_for_status()
users = search_res.json()

if not users:
    pass
else:
    user_id = users[0]['user_id']
    HELLO = {"TEST1": "TEST1DATA", "TEST2": "TEST2DATA"}
    update_response = requests.patch(
        f'https://{AUTH0_DOMAIN}/api/v2/users/{user_id}',
        headers={
            'Authorization': f'Bearer {mgmt_token}',
            'Content-Type': 'application/json'
        },
        json={
            "app_metadata": HELLO
        }
    )

    if update_response.status_code == 200:
        print("User metadata updated successfully.")
    else:
        print("Error updating metadata:", update_response.text)```
````

---

<div class="post-metadata">

**Author:** ![aidehen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aidehen/32/71417_2.png) [@aidehen](https://community.auth0.com/u/aidehen)\
**Post date:** [May 20, 2025, 1:50am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/2 "2025-05-20T01:50:12Z")

</div>

Same issue here. Made an API request to block a user and I’m getting the error when accessing the user dashboard. I tried switching tenant to see if it was localized but it’s happening on all my tenants. I think the dashboard itself might be down.

---

<div class="post-metadata">

**Author:** ![ashish.jamthe1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ashish.jamthe1/32/60502_2.png) [@ashish.jamthe1](https://community.auth0.com/u/ashish.jamthe1)\
**Post date:** [May 20, 2025, 1:53am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/3 "2025-05-20T01:53:38Z")

</div>

> [@ausar850](#):
>
> The python code I used to update the user meta data is below (secrets are redacted).

I am getting this error in all my tenancies. Even the simplest tenancy with minimum data. I doubt if this has anything to do with any action you have taken. This seems to be ubiquitous.

---

<div class="post-metadata">

**Author:** ![arturo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/arturo/32/44667_2.png) [@arturo](https://community.auth0.com/u/arturo)\
**Post date:** [May 20, 2025, 2:08am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/4 "2025-05-20T02:08:50Z")

</div>

I’m having the same problem, nothing change on my end and cannot find a way to solve this

---

<div class="post-metadata">

**Author:** ![aidehen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aidehen/32/71417_2.png) [@aidehen](https://community.auth0.com/u/aidehen)\
**Post date:** [May 20, 2025, 2:10am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/5 "2025-05-20T02:10:45Z")

</div>

Confirmed, it’s on auth0’s end.

> **[Auth0 Status Page](https://status.auth0.com/)**

---

<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:** [June 3, 2025, 2:10am UTC](https://community.auth0.com/t/important-cant-access-user-database-ui-for-any-of-my-users/186921/6 "2025-06-03T02:10:57Z")

</div>

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