Forum Discussion

Neeraj_I's avatar
Neeraj_I
Frequent Visitor
1 year ago

How to Retrieve the Embed Code "Status" details for Published to Web Reports?

 

Hi Microsoft Community,

We are building a monitoring solution for our Power BI tenant and need to retrieve the "Embed Code Status" (active, disabled, or unused) for reports published to Web. This is crucial for governance and compliance.

We explored the WidelySharedArtifacts PublishedToWeb Power BI REST API but did not find the "Status" column. Below is an example of the retrieved data:


"artifactId": "41ce06d1-d81b-4ea0-bc6d-2ce3dd2f8e87",
"displayName": "test report",
"artifactType": "Report",
"accessRight": "None",
"shareType": "PublishToWeb",
"sharer": {
"displayName": "John Nick",
"emailAddress": "[email protected]",
"identifier": "[email protected]",
"graphId": "3fadb6e4-130c-4a8f-aeac-416e38b66756",
"principalType": "User"

The "Embed Code Status" column is missing in the response.

Question:
Is there an alternative API, Admin API, script, or workaround (e.g., PowerShell or custom connectors) to fetch this information? If anyone has implemented a similar solution, I would greatly appreciate your insights or approach.

 

Thank you for your help!

Best regards,
Neeraj Izardar

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Neeraj_I 


    Currently, the Power BI REST API does not have such an endpoint. You can create embed codes directly in the Power BI service and manage or delete existing embed codes through the management options.

    For more information you can refer to the follwoing document:
    Manage embed codes - Microsoft Fabric | Microsoft Learn

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.