@Asbjørn Fleinert Mathiasen - Thanks for your reply and for sharing the updated error screenshot.
According to this MS documentation: https://learn.microsoft.com/en-us/purview/register-scan-power-bi-tenant?tabs=Scenario1#create-scan-for-same-tenant-power-bi-using-azure-ir-and-managed-identity
Based on the error you're seeing —
ErrorCode:(3871) UserErrorDataScanPowerBIBasicMetadataFailure
— and the fact that “Access” is successful but “Assets (+ lineage)” and “Detailed metadata” are failing, the issue is very likely caused by missing permissions for the managed identity to access the Power BI Admin APIs, which are required to fetch metadata and lineage.
This error occurs even during "Test connection" if the managed identity (UAMI) does not have access to the Power BI Admin APIs, not just during scan.
Please re-confirm the following (even if already done) - Go to Power BI Admin Portal: https://app.powerbi.com/admin-portal/tenantSettings
In Tenant Settings, ensure:
- “Allow service principals to use Power BI APIs” is enabled
- “Allow service principals to access read-only admin APIs” is enabled
If these are restricted to specific security groups - Make sure your User Assigned Managed Identity (UAMI) is a member of that group in Microsoft Entra ID.
To isolate whether the issue is with UAMI access - Try configuring the scan with a Service Principal that has the same permissions.
If it works, it confirms that UAMI is missing the Admin API access and adding it to the allowed group will resolve the issue.
I hope this information helps!