gitlab.getUser
Explore with Pulumi AI
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
Upstream API: GitLab REST API docs
Using getUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
def get_user(email: Optional[str] = None,
namespace_id: Optional[int] = None,
user_id: Optional[int] = None,
username: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(email: Optional[pulumi.Input[str]] = None,
namespace_id: Optional[pulumi.Input[int]] = None,
user_id: Optional[pulumi.Input[int]] = None,
username: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
> Note: This function is named LookupUser
in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- Namespace
Id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- User
Id int - The ID of the user.
- Username string
- The username of the user.
- Email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- Namespace
Id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- User
Id int - The ID of the user.
- Username string
- The username of the user.
- email String
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- namespace
Id Integer - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- user
Id Integer - The ID of the user.
- username String
- The username of the user.
- email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- namespace
Id number - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- user
Id number - The ID of the user.
- username string
- The username of the user.
- email str
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- namespace_
id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- user_
id int - The ID of the user.
- username str
- The username of the user.
- email String
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- namespace
Id Number - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- user
Id Number - The ID of the user.
- username String
- The username of the user.
getUser Result
The following output properties are available:
- Avatar
Url string - The avatar URL of the user.
- Bio string
- The bio of the user.
- Can
Create boolGroup - Whether the user can create groups.
- Can
Create boolProject - Whether the user can create projects.
- Color
Scheme intId - User's color scheme ID.
- Created
At string - Date the user was created at.
- Current
Sign stringIn At - Current user's sign-in date.
- Email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- Extern
Uid string - The external UID of the user.
- External bool
- Whether the user is external.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Admin bool - Whether the user is an admin.
- Is
Bot bool - Whether the user is a bot.
- Last
Sign stringIn At - Last user's sign-in date.
- Linkedin string
- LinkedIn profile of the user.
- Location string
- The location of the user.
- Name string
- The name of the user.
- Namespace
Id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- Note string
- Admin notes for this user.
- Organization string
- The organization of the user.
- Projects
Limit int - Number of projects the user can create.
- Skype string
- Skype username of the user.
- State string
- Whether the user is active or blocked.
- Theme
Id int - User's theme ID.
- Twitter string
- Twitter username of the user.
- Two
Factor boolEnabled - Whether user's two-factor auth is enabled.
- User
Id int - The ID of the user.
- User
Provider string - The UID provider of the user.
- Username string
- The username of the user.
- Website
Url string - User's website URL.
- Avatar
Url string - The avatar URL of the user.
- Bio string
- The bio of the user.
- Can
Create boolGroup - Whether the user can create groups.
- Can
Create boolProject - Whether the user can create projects.
- Color
Scheme intId - User's color scheme ID.
- Created
At string - Date the user was created at.
- Current
Sign stringIn At - Current user's sign-in date.
- Email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- Extern
Uid string - The external UID of the user.
- External bool
- Whether the user is external.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Admin bool - Whether the user is an admin.
- Is
Bot bool - Whether the user is a bot.
- Last
Sign stringIn At - Last user's sign-in date.
- Linkedin string
- LinkedIn profile of the user.
- Location string
- The location of the user.
- Name string
- The name of the user.
- Namespace
Id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- Note string
- Admin notes for this user.
- Organization string
- The organization of the user.
- Projects
Limit int - Number of projects the user can create.
- Skype string
- Skype username of the user.
- State string
- Whether the user is active or blocked.
- Theme
Id int - User's theme ID.
- Twitter string
- Twitter username of the user.
- Two
Factor boolEnabled - Whether user's two-factor auth is enabled.
- User
Id int - The ID of the user.
- User
Provider string - The UID provider of the user.
- Username string
- The username of the user.
- Website
Url string - User's website URL.
- avatar
Url String - The avatar URL of the user.
- bio String
- The bio of the user.
- can
Create BooleanGroup - Whether the user can create groups.
- can
Create BooleanProject - Whether the user can create projects.
- color
Scheme IntegerId - User's color scheme ID.
- created
At String - Date the user was created at.
- current
Sign StringIn At - Current user's sign-in date.
- email String
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- extern
Uid String - The external UID of the user.
- external Boolean
- Whether the user is external.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Admin Boolean - Whether the user is an admin.
- is
Bot Boolean - Whether the user is a bot.
- last
Sign StringIn At - Last user's sign-in date.
- linkedin String
- LinkedIn profile of the user.
- location String
- The location of the user.
- name String
- The name of the user.
- namespace
Id Integer - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- note String
- Admin notes for this user.
- organization String
- The organization of the user.
- projects
Limit Integer - Number of projects the user can create.
- skype String
- Skype username of the user.
- state String
- Whether the user is active or blocked.
- theme
Id Integer - User's theme ID.
- twitter String
- Twitter username of the user.
- two
Factor BooleanEnabled - Whether user's two-factor auth is enabled.
- user
Id Integer - The ID of the user.
- user
Provider String - The UID provider of the user.
- username String
- The username of the user.
- website
Url String - User's website URL.
- avatar
Url string - The avatar URL of the user.
- bio string
- The bio of the user.
- can
Create booleanGroup - Whether the user can create groups.
- can
Create booleanProject - Whether the user can create projects.
- color
Scheme numberId - User's color scheme ID.
- created
At string - Date the user was created at.
- current
Sign stringIn At - Current user's sign-in date.
- email string
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- extern
Uid string - The external UID of the user.
- external boolean
- Whether the user is external.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Admin boolean - Whether the user is an admin.
- is
Bot boolean - Whether the user is a bot.
- last
Sign stringIn At - Last user's sign-in date.
- linkedin string
- LinkedIn profile of the user.
- location string
- The location of the user.
- name string
- The name of the user.
- namespace
Id number - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- note string
- Admin notes for this user.
- organization string
- The organization of the user.
- projects
Limit number - Number of projects the user can create.
- skype string
- Skype username of the user.
- state string
- Whether the user is active or blocked.
- theme
Id number - User's theme ID.
- twitter string
- Twitter username of the user.
- two
Factor booleanEnabled - Whether user's two-factor auth is enabled.
- user
Id number - The ID of the user.
- user
Provider string - The UID provider of the user.
- username string
- The username of the user.
- website
Url string - User's website URL.
- avatar_
url str - The avatar URL of the user.
- bio str
- The bio of the user.
- can_
create_ boolgroup - Whether the user can create groups.
- can_
create_ boolproject - Whether the user can create projects.
- color_
scheme_ intid - User's color scheme ID.
- created_
at str - Date the user was created at.
- current_
sign_ strin_ at - Current user's sign-in date.
- email str
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- extern_
uid str - The external UID of the user.
- external bool
- Whether the user is external.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
admin bool - Whether the user is an admin.
- is_
bot bool - Whether the user is a bot.
- last_
sign_ strin_ at - Last user's sign-in date.
- linkedin str
- LinkedIn profile of the user.
- location str
- The location of the user.
- name str
- The name of the user.
- namespace_
id int - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- note str
- Admin notes for this user.
- organization str
- The organization of the user.
- projects_
limit int - Number of projects the user can create.
- skype str
- Skype username of the user.
- state str
- Whether the user is active or blocked.
- theme_
id int - User's theme ID.
- twitter str
- Twitter username of the user.
- two_
factor_ boolenabled - Whether user's two-factor auth is enabled.
- user_
id int - The ID of the user.
- user_
provider str - The UID provider of the user.
- username str
- The username of the user.
- website_
url str - User's website URL.
- avatar
Url String - The avatar URL of the user.
- bio String
- The bio of the user.
- can
Create BooleanGroup - Whether the user can create groups.
- can
Create BooleanProject - Whether the user can create projects.
- color
Scheme NumberId - User's color scheme ID.
- created
At String - Date the user was created at.
- current
Sign StringIn At - Current user's sign-in date.
- email String
- The public email address of the user. Note: before GitLab 14.8 the lookup was based on the users primary email address.
- extern
Uid String - The external UID of the user.
- external Boolean
- Whether the user is external.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Admin Boolean - Whether the user is an admin.
- is
Bot Boolean - Whether the user is a bot.
- last
Sign StringIn At - Last user's sign-in date.
- linkedin String
- LinkedIn profile of the user.
- location String
- The location of the user.
- name String
- The name of the user.
- namespace
Id Number - The ID of the user's namespace. Requires admin token to access this field. Available since GitLab 14.10.
- note String
- Admin notes for this user.
- organization String
- The organization of the user.
- projects
Limit Number - Number of projects the user can create.
- skype String
- Skype username of the user.
- state String
- Whether the user is active or blocked.
- theme
Id Number - User's theme ID.
- twitter String
- Twitter username of the user.
- two
Factor BooleanEnabled - Whether user's two-factor auth is enabled.
- user
Id Number - The ID of the user.
- user
Provider String - The UID provider of the user.
- username String
- The username of the user.
- website
Url String - User's website URL.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.