diff --git a/cmd/object-lambda-handlers.go b/cmd/object-lambda-handlers.go index 72fd5687f..c486e94bc 100644 --- a/cmd/object-lambda-handlers.go +++ b/cmd/object-lambda-handlers.go @@ -93,8 +93,8 @@ func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Re }, UserIdentity: levent.Identity{ Type: "IAMUser", - PrincipalID: cred.AccessKey, - AccessKeyID: cred.SecretKey, + PrincipalID: cred.ParentUser, + AccessKeyID: cred.AccessKey, }, } return eventData, nil