diff --git a/cmd/admin-handlers-users.go b/cmd/admin-handlers-users.go index 64ba71291..26e592355 100644 --- a/cmd/admin-handlers-users.go +++ b/cmd/admin-handlers-users.go @@ -379,7 +379,7 @@ func (a adminAPIHandlers) AddUser(w http.ResponseWriter, r *http.Request) { } // Not allowed to add a user with same access key as root credential - if owner { + if owner && accessKey == cred.AccessKey { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL) return }