powerbipowerbi-datasourcepowerbi-rest-api

Power BI REST Admin - Datasets GetDatasourcesAsAdmin return DMTS_UserNotFoundInADGraphError


I got this DMTS_UserNotFoundInADGraphError error when using Power BI REST Admin - Datasets GetDatasourcesAsAdmin API to get datasources.

Here is the full error

{
    "error":{
        "code":"DMTS_UserNotFoundInADGraphError",
        "pbi.error":{
            "code":"DMTS_UserNotFoundInADGraphError",
            "parameters":{},
            "details":[],
            "exceptionCulprit":1
        }
    }
}

I tried Googling about this and found nothing. Does anyone know what is this error and how to fix it?


Solution

  • I also received this error when trying to run the API call against a dataset and after further investigation found the dataset to have come from a Personal Workspace with a status of "deleted".

    Looks like the user has left and been deleted from AD / Entra.