getUser

suspend fun getUser(argument: GetUserPlainArgs): GetUserResult

The gitlab.User data source allows details of a user to be retrieved by either the user ID, username or email address.

Some attributes might not be returned depending on if you're an admin or not. When using the email attribute, an exact match is not guaranteed. The most related match will be returned. The most related match will prioritize an exact match if one is available. Upstream API: GitLab REST API docs

Return

A collection of values returned by getUser.

Parameters

argument

A collection of arguments for invoking getUser.


suspend fun getUser(email: String? = null, namespaceId: Int? = null, userId: Int? = null, username: String? = null): GetUserResult

Return

A collection of values returned by getUser.

Parameters

email

The public email address of the user.

namespaceId

The ID of the user's namespace. Requires admin token to access this field.

userId

The ID of the user.

username

The username of the user.

See also


suspend fun getUser(argument: suspend GetUserPlainArgsBuilder.() -> Unit): GetUserResult

Return

A collection of values returned by getUser.

Parameters

argument

Builder for com.pulumi.gitlab.kotlin.inputs.GetUserPlainArgs.

See also