To configure MuleSoft Power BI Connector with OAuth:
1️⃣ Register an Azure AD App → Add API permissions (Dataset.ReadWrite.All, Workspace.ReadWrite.All), generate Client ID & Secret.
2️⃣ Set Up OAuth in MuleSoft → Use Authorization & Token Endpoints (https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize & /token), configure scope (https://graph.microsoft.com/.default).
3️⃣ Troubleshooting:
🔹 401 Unauthorized → Check API permissions & admin consent.
🔹 Invalid Scope → Ensure correct OAuth scope.
🔹 Token Issues → Use Refresh Token flow.