get User
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. 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. Note: before GitLab 14.8 the lookup was based on the users primary email address.
namespace Id
The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
user Id
The ID of the user.
username
The username of the user.
See also
Return
A collection of values returned by getUser.
Parameters
argument
Builder for com.pulumi.gitlab.kotlin.inputs.GetUserPlainArgs.