diff --git a/dictation_server/src/gateways/adb2c/adb2c.service.ts b/dictation_server/src/gateways/adb2c/adb2c.service.ts index 6997ee9..69bd890 100644 --- a/dictation_server/src/gateways/adb2c/adb2c.service.ts +++ b/dictation_server/src/gateways/adb2c/adb2c.service.ts @@ -197,7 +197,10 @@ export class AdB2cService { } // キャッシュ上に存在していなければ、ADB2Cから取得してキャッシュに保存する - const user = await this.graphClient.api(`users/${externalId}`).get(); + const user = await this.graphClient + .api(`users/${externalId}`) + .select(['id', 'displayName', 'identities']) + .get(); await this.redisService.set(key, user, this.ttl); this.logger.log(`[ADB2C GET] externalId: ${externalId}`);