# App\_metadata attributes are blank in output of users export

**URL:** <https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [May 16, 2024, 1:47pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286 "2024-05-16T13:47:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 16, 2024, 1:47pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/1 "2024-05-16T13:47:14Z")

</div>

(Side note: The tags need help, I put in ‘app\_metadata’, et al, and nothing is displayed. I can’t even type it in. Why are the tags function in this topic creation not working?)

Hi Community,  
When we try to export info from any of the app\_metadata attributes like say app\_metadata.name or app\_metadata.address.city, the fields are empty.  
Yet we can see this information elsewhere in Auth0.  
We tried json and csv export format types.  
Please advise.  
Thank you for your time and help!  
Best Regards,  
Donald

 ![2024-05-16 09_19_23-User Import _ Export Dashboard](https://global.discourse-cdn.com/auth0/original/3X/e/3/e3e700b0e6cdd25bb084514d8119f78a88d735ea.png)  
 ![2024-05-16 09_41_41-](https://global.discourse-cdn.com/auth0/original/3X/9/0/90c000549a353c9a0149ee64f0364e10f71da80c.png)  
 ![2024-05-16 09_41_04-trulab-dev (11).csv - Excel](https://global.discourse-cdn.com/auth0/original/3X/1/7/17f905ebc605deb9bce597bd40acf28d3cc53e0a.png)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 17, 2024, 12:22am UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/3 "2024-05-17T00:22:58Z")

</div>

Hi @donald.collins,

Thanks for letting us know about the tags. We will look into this!

As for the user export, it should work if your user has those properties defined in their app\_metadata.

I have inspected some of your users on your tenant and did not find any of the ones I searched to have `app_metadata.name` or `app_metadata.address.city`.

Could you check if your users have those properties defined?

Let me know how that goes.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![truongthanhhangpoh52](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/truongthanhhangpoh52/32/50062_2.png) [@truongthanhhangpoh52](https://community.auth0.com/u/truongthanhhangpoh52)\
**Post date:** [May 17, 2024, 4:26am UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/4 "2024-05-17T04:26:22Z")

</div>

Hello,  
When we try to export info from any of the app\_metadata attributes, such as [mgh patient portal](https://www.mgh-patientgateway.com/) app\_metadata.name or app\_metadata.address.city, the fields are empty. However, we can see this information elsewhere in Auth0. We tried both JSON and CSV export formats.

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 17, 2024, 1:30pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/5 "2024-05-17T13:30:33Z")

</div>

Hi Rueben, Thank you for your quick reply and help.  
I have access only to the trulab-dev site and that’s probably why we don’t see those properties defined there? But I will ask a co-worker that has trulab-prod access to check for those defined properties and let you know!  
Thanks.  
Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 17, 2024, 3:52pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/6 "2024-05-17T15:52:22Z")

</div>

Hi Rueben, I heard back from the co-worker with prod access.  
It seems she can get that data in the export but for only (1) column/attribute per user (ie many columns/fields to get them all) vs them all being listed in (1) column. Here’s what she said in screenshot below:  
 ![2024-05-17 11_48_18-TruLab Mail](https://global.discourse-cdn.com/auth0/original/3X/1/e/1ea69073762fb305a94201e5d6ceb75cb521b2e5.png)

Thank you for your help!  
Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 20, 2024, 6:37pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/7 "2024-05-20T18:37:05Z")

</div>

Hi @donald.collins,

Thanks for the update.

I got a chance to inspect the screenshot you shared and see that your co-worker is trying to export attributes that are different from the ones you originally posted.

Now, if you need to export the `allowed_protocols_ids` in the whole column rather than individual items of the array, you can call `app_metadata.allowed_protocol_ids`.

I hope that helps!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 20, 2024, 7:54pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/8 "2024-05-20T19:54:39Z")

</div>

Hi Rueben, Yes sorry for the confusion I created between what I was using for attributes vs what attributes my co-worker is trying to export. My co-worker got back to me and she tried calling ‘app\_metadata.allowed\_protocol\_ids’, she said;  
“I have already tried that on prod and it returned empty cells”.  
Please advise!

Thank you for your time and help.  
Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 21, 2024, 5:12pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/9 "2024-05-21T17:12:14Z")

</div>

Hi @donald.collins,

I have tested this on my end and could export the `app_metadata.allowed_protocol_ids` without issues.

Can you send me a direct message from your co-worker’s tenant and user that they are trying to export?

After that, could you update this thread and let me know once that’s done?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 21, 2024, 5:21pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/10 "2024-05-21T17:21:44Z")

</div>

Hi Rueben - Okay will that sounds like some progress! I’m not following this exactly, _“Can you send me a direct message from your co-worker’s tenant and user that they are trying to export?”_  
How do I get her (or I) to accomplish this?  
Thank you for your help and time!  
Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 21, 2024, 5:54pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/11 "2024-05-21T17:54:05Z")

</div>

Okay I have figured out what you meant by the direct message.  
She’s going to go to your page

> **[@rueben.tiow](https://community.auth0.com/u/rueben.tiow/summary)**

and then send you a message…

Or she’ll give me the info and I’ll send you a message…

By the way, are you a Auth0 employee?

-dc

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 21, 2024, 6:40pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/12 "2024-05-21T18:40:37Z")

</div>

Hi @donald.collins,

Thanks for the quick replies.

Yes, I am an Auth0 employee.

And I’ll keep a look out for a direct message from your co-worker.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 21, 2024, 7:05pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/13 "2024-05-21T19:05:12Z")

</div>

Very welcome Rueben!  
She said she can’t send the actual user names b/c of Hipaa rules (this is clinical data) but she provided this " the tenant is just “trulab” I think and the connection I was exporting was “dnli-prod” "  
Also, she blocked out the usernames so that is actually not empty just the allowed\_protocol\_ids ( " I’ve blocked out the names for data privacy of our users, but the app\_metadata.allowed\_protocol\_ids column is empty" )  
When she builds the export calling for name and allowed\_protocol\_ids using that connection she gets blank output:  
 ![2024-05-21 15_03_22-TruLab Mail](https://global.discourse-cdn.com/auth0/original/3X/f/6/f627ef4cc2190a147a9fa1e23e68c5ed7650210f.png)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 21, 2024, 10:55pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/14 "2024-05-21T22:55:51Z")

</div>

Hi @donald.collins,

Thanks for the information.

I looked over your screenshot and found it odd that even the users’ names are missing from the result.

I inspected the tenant and the users in the connection you shared. I do see that these users have the `app_metadata.allowed_protocol_ids` property.

I retested the import/export extension and found that the issue occurs only with the .csv format. Exporting in JSON works correctly.

Here’s how I configured my export in the extension:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/1/a10cbf2c788d22abb3ca8cd12cd09b87d3e4b882.png)

Could you verify if you have the same setup?

  
  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 22, 2024, 1:46pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/15 "2024-05-22T13:46:26Z")

</div>

Hi Rueben,  
The setup is not the same, we are not using “Username-Password-Authentication” for the Connection choice.  
When exporting out to a json file and using “All Connections” for Connection choice my dev environment only shows the ‘Name’ data and no column or info for “app\_metadata.allowed\_protocol\_ids”, it is blank.  
I will ask my co-worker to run the exact same but in production.  
She’ll use name, app\_metadata.allowed\_protocol\_ids and JSON format and select one of the production connections - I’ll let you know what she gets.  
Thank you for your time and patience!  
Below are the screenshots from my dev environment run:

 ![2024-05-22 11_56_39-User Import _ Export Dashboard](https://global.discourse-cdn.com/auth0/original/3X/e/1/e1f75213bc6aa261881b09ccd32f379f2b783a8a.png)

![2024-05-22 09_37_09-User Import _ Export Dashboard](https://global.discourse-cdn.com/auth0/original/3X/5/3/5355882ad9cfb5955afe9e751642aa39e951159e.png)  
 ![2024-05-22 09_37_50-trulab-dev (3).json - Notepad](https://global.discourse-cdn.com/auth0/original/3X/2/9/29b8559f96e38767109c6a86c73ebe56966c2247.png)

Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 22, 2024, 4:42pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/16 "2024-05-22T16:42:34Z")

</div>

Hi @donald.collins,

Thanks for the update.

Yes, it makes sense that you chose your preferred connection to export.

I checked this information in the `trulab` tenant and confirmed that it should work correctly since there are users with the `app_metadata.allowed_protocol_ids` property. Could you confirm with your co-worker?

Next, I checked your `trulab-dev` tenant and found that you have 0 users with the `app_metadata.allowed_protocol_ids` property. See screenshot below:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/9/a91e9a65e5b1982a45b3b5ed7b91534e9e24e030.png)

Given that, you’ll want to ensure you have at least **1** user containing the `app_metadata.allowed_protocol_ids` property.

Could you check and retry again and let me know how it goes for you?

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 22, 2024, 5:00pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/17 "2024-05-22T17:00:03Z")

</div>

Hi Rueben, Thank you looking into, " I checked your `trulab-dev` tenant and found that you have 0 users with the `app_metadata.allowed_protocol_ids` property"  
That is good to know…

My co-worker got back to me and I have some good news. In prod, using the .JSON format as output she is seeing both the “name” information and the “app\_metadata.allowed\_protocol\_ids” information, below is a screenshot that she took when she opened the .json file in excel:

 ![Screen Shot 2024-05-22 at 12.07.25 PM](https://global.discourse-cdn.com/auth0/original/3X/2/c/2c3ef933f294720cb5170979f42858cc00bd96a2.png)

Question, she now needs to convert the outputted json file to a .csv file - do you have a favorite converter app/program to accomplish this? I see a lot of options on line and just thought I’d ask if you had any you use/like etc…  
Thanks!

Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 22, 2024, 8:34pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/18 "2024-05-22T20:34:40Z")

</div>

Hi @donald.collins,

That’s great news it’s working now!

I don’t personally have a favorite converter that can change the file from json to .csv.

In these scenarios, I typically write a Python script to convert it to .csv.

Here is what I used:

```auto
import pandas as pd

def json_to_csv(json_file_path, csv_file_path):
    # Read JSON file into a dataframe
    df = pd.read_json(json_file_path, lines=True)
    
    # Save dataframe to a CSV file, delimited by a comma
    df.to_csv(csv_file_path, index=False, sep=',')

json_file_path = 'input.json' # Path to your JSON file
csv_file_path = 'output.csv' # Path where CSV file will be saved

json_to_csv(json_file_path, csv_file_path)

```

I hope that helps!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![donald.collins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/donald.collins/32/55816_2.png) [@donald.collins](https://community.auth0.com/u/donald.collins)\
**Post date:** [May 23, 2024, 11:57am UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/19 "2024-05-23T11:57:40Z")

</div>

Thank you Rueben for all your help!  
**And a big thank you for the python script!**  
We had started trying to do the same with Ruby and it’s a bit more involved.  
We’ll try this python script as well it seems more concise and much less code.  
Best Regards,  
Donald

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 23, 2024, 3:58pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/20 "2024-05-23T15:58:30Z")

</div>

Hi @donald.collins,

Of course, you’re welcome!

That sounds good regarding the Python script.

Feel free to reach out if you have any additional questions!

Cheers,  
Rueben

---

<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 6, 2024, 3:58pm UTC](https://community.auth0.com/t/app-metadata-attributes-are-blank-in-output-of-users-export/134286/21 "2024-06-06T15:58:38Z")

</div>

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