diff --git a/pkg/operator/ceph/object/user.go b/pkg/operator/ceph/object/user.go index b5edf4699..99b8a473f 100644 --- a/pkg/operator/ceph/object/user.go +++ b/pkg/operator/ceph/object/user.go @@ -42,6 +42,7 @@ type ObjectUser struct { Email *string `json:"email"` AccessKey *string `json:"accessKey"` SecretKey *string `json:"secretKey"` + SystemUser bool `json:"systemuser"` } // ListUsers lists the object pool users. @@ -126,6 +127,10 @@ func CreateUser(c *Context, user ObjectUser) (*ObjectUser, int, error) { args = append(args, "--email", *user.Email) } + if user.SystemUser { + args = append(args, "--system") + } + result, err := runAdminCommand(c, args...) if err != nil { if strings.Contains(result, "could not create user: unable to create user, user: ") {