Skip to main content

User

Resource User in pulumi-portainer.
3 min read

Resource User in pulumi-portainer.

Pulumi type: portainer:index/user:User.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
apiKeyDescriptionstringnoDescription applied to the generated Portainer API key. Only used when generateApiKey is true.
generateApiKeybooleannoWhether to generate a Portainer API key for the user during creation. Requires password to be set.
ldapUserbooleannoWhether the user is authenticated via LDAP. When true, password must be empty and authentication is delegated to the configured LDAP server.
passwordstringnoPassword for the Portainer user. Required for non-LDAP users; must be omitted for LDAP users. Stored in state as a sensitive value.
rolenumbernoPortainer role of the user: 1 = administrator, 2 = standard user. Defaults to 2.
teamIdnumbernoOptional Portainer team ID. Only applicable for standard users (role = 2).
userIdstringno
usernamestringyesUsername used to log in to Portainer. Must be unique within the Portainer instance.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
apiKeyDescriptionstringnoDescription applied to the generated Portainer API key. Only used when generateApiKey is true.
apiKeyRawstringyesRaw API key generated by Portainer when generateApiKey is true. Computed and only available after initial creation.
generateApiKeybooleannoWhether to generate a Portainer API key for the user during creation. Requires password to be set.
ldapUserbooleannoWhether the user is authenticated via LDAP. When true, password must be empty and authentication is delegated to the configured LDAP server.
passwordstringnoPassword for the Portainer user. Required for non-LDAP users; must be omitted for LDAP users. Stored in state as a sensitive value.
rolenumbernoPortainer role of the user: 1 = administrator, 2 = standard user. Defaults to 2.
teamIdnumbernoOptional Portainer team ID. Only applicable for standard users (role = 2).
userIdstringno
usernamestringnoUsername used to log in to Portainer. Must be unique within the Portainer instance.