GetUser
Provides details about a specific user in the gitlab provider. Especially the ability to lookup the id for linking to other resources.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(GitLab.GetUser.InvokeAsync(new GitLab.GetUserArgs
{
Username = "myuser",
}));
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_user(username="myuser")import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = pulumi.output(gitlab.getUser({
username: "myuser",
}, { async: true }));Using GetUser
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>function get_user(email=None, user_id=None, username=None, opts=None)func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)Note: This function is named
LookupUserin the Go SDK.
public static class GetUser {
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
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 e-mail address of the user.
- 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.
- 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.
- 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 - 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 e-mail address of the user.
- 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.
- 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.
- 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 - 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 e-mail address of the user.
- 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.
- 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.
- 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 - 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_ floatid 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 e-mail address of the user.
- 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.
- 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.
- organization str
The organization of the user.
- projects_
limit float 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 float User’s theme ID.
- twitter str
Twitter username of the user.
- two_
factor_ boolenabled Whether user’s two factor auth is enabled.
- user_
id float - user_
provider str The UID provider of the user.
- username str
The username of the user.
- website_
url str User’s website URL.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.