From 957e3ed729e0202ad5690c40ff8f55a38266a5f4 Mon Sep 17 00:00:00 2001 From: Poorna Date: Mon, 18 Jul 2022 17:38:53 -0700 Subject: [PATCH] export IAM: include site replicator svcacct (#15339) --- cmd/admin-handlers-users.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/admin-handlers-users.go b/cmd/admin-handlers-users.go index 51717d1eb..1ed2f88b0 100644 --- a/cmd/admin-handlers-users.go +++ b/cmd/admin-handlers-users.go @@ -1674,11 +1674,6 @@ func (a adminAPIHandlers) ExportIAM(w http.ResponseWriter, r *http.Request) { } svcAccts := make(map[string]madmin.SRSvcAccCreate) for user, acc := range serviceAccounts { - if user == siteReplicatorSvcAcc { - // skip the site replicate svc account as it should be created automatically if - // site replication is enabled. - continue - } claims, err := globalIAMSys.GetClaimsForSvcAcc(ctx, acc.Credentials.AccessKey) if err != nil { writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)