CreateUserInput
Interface: CreateUserInput
Defined in: src/types/user.types.ts:2
Input for creating a new RGW user.
Properties
accessKey?
optionalaccessKey:string
Defined in: src/types/user.types.ts:12
Specify an access key instead of auto-generating.
displayName
displayName:
string
Defined in: src/types/user.types.ts:6
Display name for the user. Required. Must not be whitespace-only.
email?
optionalemail:string
Defined in: src/types/user.types.ts:8
Email address. Basic format validation is applied.
generateKey?
optionalgenerateKey:boolean
Defined in: src/types/user.types.ts:29
Whether to auto-generate a key pair. Default: true.
keyType?
optionalkeyType:"s3"|"swift"
Defined in: src/types/user.types.ts:10
Key type to generate. Default: 's3'.
maxBuckets?
optionalmaxBuckets:number
Defined in: src/types/user.types.ts:31
Maximum number of buckets allowed. Default: 1000. Use -1 for unlimited.
opMask?
optionalopMask:string
Defined in: src/types/user.types.ts:41
Operation mask — limits which S3 operations the user can perform.
Comma-separated list of operations: read, write, delete, *.
Example
`"read, write"`
secretKey?
optionalsecretKey:string
Defined in: src/types/user.types.ts:18
Specify a secret key instead of auto-generating.
Remarks
This value is transmitted as a query parameter per the RGW Admin Ops API wire format. It is redacted from debug logs by the client.
suspended?
optionalsuspended:boolean
Defined in: src/types/user.types.ts:33
Whether the user is suspended on creation. Default: false.
tenant?
optionaltenant:string
Defined in: src/types/user.types.ts:35
Tenant name for multi-tenancy.
uid
uid:
string
Defined in: src/types/user.types.ts:4
Unique user ID. Required. Must not contain colons (reserved for subuser notation).
userCaps?
optionaluserCaps:string
Defined in: src/types/user.types.ts:27
User capabilities string. Controls which admin operations the user may perform.
Format: "type=perm" or "type1=perm;type2=perm".
Valid types: users, buckets, metadata, usage, zone, info, bilog,
mdlog, datalog, user-policy, oidc-provider, roles, ratelimit.
Valid perms: *, read, write, read, write.
Example
`"users=*;buckets=read"`