gitlab.getCurrentUser
The gitlab.getCurrentUser
data source allows details of the current user (determined by token
provider attribute) to be retrieved.
Upstream API: GitLab GraphQL API docs
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = pulumi.output(gitlab.getCurrentUser());
Coming soon!
Using getCurrentUser
function getCurrentUser(opts?: InvokeOptions): Promise<GetCurrentUserResult>
def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
func GetCurrentUser(ctx *Context, opts ...InvokeOption) (*GetCurrentUserResult, error)
> Note: This function is named GetCurrentUser
in the Go SDK.
public static class GetCurrentUser
{
public static Task<GetCurrentUserResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetCurrentUserResult> getCurrentUser(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getCurrentUser:getCurrentUser
arguments:
# arguments dictionary
getCurrentUser Result
The following output properties are available:
- Bot bool
Indicates if the user is a bot.
- Global
Id string Global ID of the user. This is in the form of a GraphQL globally unique ID.
- Global
Namespace stringId Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- Group
Count int Group count for the user.
- Id string
ID of the user.
- Name string
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- Namespace
Id string Personal namespace of the user.
- Public
Email string User’s public email.
- Username string
Username of the user. Unique within this instance of GitLab.
- Bot bool
Indicates if the user is a bot.
- Global
Id string Global ID of the user. This is in the form of a GraphQL globally unique ID.
- Global
Namespace stringId Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- Group
Count int Group count for the user.
- Id string
ID of the user.
- Name string
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- Namespace
Id string Personal namespace of the user.
- Public
Email string User’s public email.
- Username string
Username of the user. Unique within this instance of GitLab.
- bot Boolean
Indicates if the user is a bot.
- global
Id String Global ID of the user. This is in the form of a GraphQL globally unique ID.
- global
Namespace StringId Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- group
Count Integer Group count for the user.
- id String
ID of the user.
- name String
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- namespace
Id String Personal namespace of the user.
- public
Email String User’s public email.
- username String
Username of the user. Unique within this instance of GitLab.
- bot boolean
Indicates if the user is a bot.
- global
Id string Global ID of the user. This is in the form of a GraphQL globally unique ID.
- global
Namespace stringId Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- group
Count number Group count for the user.
- id string
ID of the user.
- name string
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- namespace
Id string Personal namespace of the user.
- public
Email string User’s public email.
- username string
Username of the user. Unique within this instance of GitLab.
- bot bool
Indicates if the user is a bot.
- global_
id str Global ID of the user. This is in the form of a GraphQL globally unique ID.
- global_
namespace_ strid Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- group_
count int Group count for the user.
- id str
ID of the user.
- name str
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- namespace_
id str Personal namespace of the user.
- public_
email str User’s public email.
- username str
Username of the user. Unique within this instance of GitLab.
- bot Boolean
Indicates if the user is a bot.
- global
Id String Global ID of the user. This is in the form of a GraphQL globally unique ID.
- global
Namespace StringId Personal namespace of the user. This is in the form of a GraphQL globally unique ID.
- group
Count Number Group count for the user.
- id String
ID of the user.
- name String
Human-readable name of the user. Returns **** if the user is a project bot and the requester does not have permission to view the project.
- namespace
Id String Personal namespace of the user.
- public
Email String User’s public email.
- username String
Username of the user. Unique within this instance of GitLab.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
gitlab
Terraform Provider.