diff --git a/lib/auth/Vault.js b/lib/auth/Vault.js index 83a1e7df5..221fbc9a2 100644 --- a/lib/auth/Vault.js +++ b/lib/auth/Vault.js @@ -24,6 +24,12 @@ function vaultSignatureCb(err, authInfo, log, callback, streamingV4Params) { const info = authInfo.message.body; const userInfo = new AuthInfo(info.userInfo); const authorizationResults = info.authorizationResults; + const auditLog = { accountDisplayName: userInfo.getAccountDisplayName() }; + const iamDisplayName = userInfo.getIAMdisplayName(); + if (iamDisplayName) { + auditLog.IAMdisplayName = iamDisplayName; + } + log.addDefaultFields(auditLog); return callback(null, userInfo, authorizationResults, streamingV4Params); }