Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Artefact
Helper II
Helper II

How to get a list of all current tenant settings in the admin portal

Hi,

Is there a REST API for exporting all current tenant settings in the admin portal? Or some other method? 

 

And is there a way to import this export again, so all settings are restored in one go?

 

thanks, 

2 REPLIES 2
Jugi
Microsoft Employee
Microsoft Employee

Feel free to reuse 

https://github.com/jugi92/fabric_admin_settings_export/blob/main/Export_Tenant_Settings_to_Table.ipy...

 

keep_history = True
 
import requests
import pandas as pd
import datetime
 
token = mssparkutils.credentials.getToken('pbi')
headers = { 'Authorization': f'Bearer {token}', 'Content-type': 'application/json' }
print(url)
response = requests.get(url, headers=headers)
 
df = pd.DataFrame(response.json()["tenantSettings"])
df["Export_Date"] = datetime.datetime.now()
display(df)
sdf = spark.createDataFrame(df)
write_mode="overwrite"
if keep_history:
write_mode = "append"
sdf.write.saveAsTable(name="Tenant_Settings", mode=write_mode)
GilbertQ
Super User
Super User

Hi @Artefact 

 

As far as I know currently there is no process to export or restore the settings via an API call.

The only thing I Could find is the current features available via the API: Available Features - REST API (Power BI Power BI REST APIs) | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors