Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(azure-entra-id): correct response type for user data retrieval

Victor Hugo dos Santos8db9db2ca19a
diff --git a/backend/src/ee/services/dynamic-secret/providers/azure-entra-id.ts b/backend/src/ee/services/dynamic-secret/providers/azure-entra-id.ts
index ff8286884f..f1d51b1668 100644
--- a/backend/src/ee/services/dynamic-secret/providers/azure-entra-id.ts
+++ b/backend/src/ee/services/dynamic-secret/providers/azure-entra-id.ts
@@ -137,10 +137,9 @@ export const AzureEntraIDProvider = (): TDynamicProviderFns & {
}
const response = await safeRequest.get<{
- value: [{ id: string; displayName: string; userPrincipalName: string }];
+ value: { id: string; displayName: string; userPrincipalName: string }[];
}>(`${MSFT_GRAPH_API_URL}/users`, {
headers: {
- "Content-Type": "application/x-www-form-urlencoded",
Authorization: `Bearer ${data.token}`
}
});