GetUsers
Provides details about a list of users in the gitlab provider. The results include id, username, email, name and more about the requested users. Users can also be sorted and filtered using several options.
NOTE: Some of the available options require administrator privileges. Please visit [Gitlab API documentation][users_for_admins] for more information.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(GitLab.GetUsers.InvokeAsync(new GitLab.GetUsersArgs
{
CreatedBefore = "2019-01-01",
OrderBy = "name",
Sort = "desc",
}));
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_users(created_before="2019-01-01",
order_by="name",
sort="desc")import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = pulumi.output(gitlab.getUsers({
createdBefore: "2019-01-01",
orderBy: "name",
sort: "desc",
}, { async: true }));Using GetUsers
function getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>function get_users(active=None, blocked=None, created_after=None, created_before=None, extern_provider=None, extern_uid=None, order_by=None, search=None, sort=None, opts=None)func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)public static class GetUsers {
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Active bool
Filter users that are active.
- Blocked bool
Filter users that are blocked.
- Created
After string Search for users created after a specific date. (Requires administrator privileges)
- Created
Before string Search for users created before a specific date. (Requires administrator privileges)
- Extern
Provider string Lookup users by external provider. (Requires administrator privileges)
- Extern
Uid string Lookup users by external UID. (Requires administrator privileges)
- Order
By string Order the users’ list by
id,name,username,created_atorupdated_at. (Requires administrator privileges)- Search string
Search users by username, name or email.
- Sort string
Sort users’ list in asc or desc order. (Requires administrator privileges)
- Active bool
Filter users that are active.
- Blocked bool
Filter users that are blocked.
- Created
After string Search for users created after a specific date. (Requires administrator privileges)
- Created
Before string Search for users created before a specific date. (Requires administrator privileges)
- Extern
Provider string Lookup users by external provider. (Requires administrator privileges)
- Extern
Uid string Lookup users by external UID. (Requires administrator privileges)
- Order
By string Order the users’ list by
id,name,username,created_atorupdated_at. (Requires administrator privileges)- Search string
Search users by username, name or email.
- Sort string
Sort users’ list in asc or desc order. (Requires administrator privileges)
- active boolean
Filter users that are active.
- blocked boolean
Filter users that are blocked.
- created
After string Search for users created after a specific date. (Requires administrator privileges)
- created
Before string Search for users created before a specific date. (Requires administrator privileges)
- extern
Provider string Lookup users by external provider. (Requires administrator privileges)
- extern
Uid string Lookup users by external UID. (Requires administrator privileges)
- order
By string Order the users’ list by
id,name,username,created_atorupdated_at. (Requires administrator privileges)- search string
Search users by username, name or email.
- sort string
Sort users’ list in asc or desc order. (Requires administrator privileges)
- active bool
Filter users that are active.
- blocked bool
Filter users that are blocked.
- created_
after str Search for users created after a specific date. (Requires administrator privileges)
- created_
before str Search for users created before a specific date. (Requires administrator privileges)
- extern_
provider str Lookup users by external provider. (Requires administrator privileges)
- extern_
uid str Lookup users by external UID. (Requires administrator privileges)
- order_
by str Order the users’ list by
id,name,username,created_atorupdated_at. (Requires administrator privileges)- search str
Search users by username, name or email.
- sort str
Sort users’ list in asc or desc order. (Requires administrator privileges)
GetUsers Result
The following output properties are available:
- id str
The provider-assigned unique ID for this managed resource.
- users
List[Get
Users User] The list of users.
- active bool
- blocked bool
- created_
after str - created_
before str - extern_
provider str - extern_
uid str The external UID of the user.
- order_
by str - search str
- sort str
Supporting Types
GetUsersUser
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- 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 Lookup users by external UID. (Requires administrator privileges)
- External bool
Whether the user is external.
- Id int
The unique id assigned to the user by the gitlab server.
- 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.
- Provider string
The UID provider of the user.
- 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.
- 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 Lookup users by external UID. (Requires administrator privileges)
- External bool
Whether the user is external.
- Id int
The unique id assigned to the user by the gitlab server.
- 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.
- Provider string
The UID provider of the user.
- 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.
- 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 Lookup users by external UID. (Requires administrator privileges)
- external boolean
Whether the user is external.
- id number
The unique id assigned to the user by the gitlab server.
- 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.
- provider string
The UID provider of the user.
- 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.
- 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 boolProject Whether the user can create projects.
- can_
create_ boolgroup Whether the user can create groups.
- 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 Lookup users by external UID. (Requires administrator privileges)
- external bool
Whether the user is external.
- id float
The unique id assigned to the user by the gitlab server.
- 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.
- provider str
The UID provider of the user.
- 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.
- 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.