Twingate v3.0.12 published on Tuesday, Nov 5, 2024 by Twingate
twingate.getTwingateUsers
Explore with Pulumi AI
Users in Twingate can be given access to Twingate Resources and may either be added manually or automatically synchronized with a 3rd party identity provider. For more information, see Twingate’s documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as twingate from "@pulumi/twingate";
const all = twingate.getTwingateUsers({});
import pulumi
import pulumi_twingate as twingate
all = twingate.get_twingate_users()
package main
import (
"github.com/Twingate/pulumi-twingate/sdk/v3/go/twingate"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := twingate.GetTwingateUsers(ctx, &twingate.GetTwingateUsersArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Twingate = Pulumi.Twingate;
return await Deployment.RunAsync(() =>
{
var all = Twingate.GetTwingateUsers.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.twingate.TwingateFunctions;
import com.pulumi.twingate.inputs.GetTwingateUsersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = TwingateFunctions.getTwingateUsers();
}
}
variables:
all:
fn::invoke:
Function: twingate:getTwingateUsers
Arguments: {}
Using getTwingateUsers
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 getTwingateUsers(args: GetTwingateUsersArgs, opts?: InvokeOptions): Promise<GetTwingateUsersResult>
function getTwingateUsersOutput(args: GetTwingateUsersOutputArgs, opts?: InvokeOptions): Output<GetTwingateUsersResult>
def get_twingate_users(email: Optional[str] = None,
email_contains: Optional[str] = None,
email_exclude: Optional[str] = None,
email_prefix: Optional[str] = None,
email_regexp: Optional[str] = None,
email_suffix: Optional[str] = None,
first_name: Optional[str] = None,
first_name_contains: Optional[str] = None,
first_name_exclude: Optional[str] = None,
first_name_prefix: Optional[str] = None,
first_name_regexp: Optional[str] = None,
first_name_suffix: Optional[str] = None,
last_name: Optional[str] = None,
last_name_contains: Optional[str] = None,
last_name_exclude: Optional[str] = None,
last_name_prefix: Optional[str] = None,
last_name_regexp: Optional[str] = None,
last_name_suffix: Optional[str] = None,
roles: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetTwingateUsersResult
def get_twingate_users_output(email: Optional[pulumi.Input[str]] = None,
email_contains: Optional[pulumi.Input[str]] = None,
email_exclude: Optional[pulumi.Input[str]] = None,
email_prefix: Optional[pulumi.Input[str]] = None,
email_regexp: Optional[pulumi.Input[str]] = None,
email_suffix: Optional[pulumi.Input[str]] = None,
first_name: Optional[pulumi.Input[str]] = None,
first_name_contains: Optional[pulumi.Input[str]] = None,
first_name_exclude: Optional[pulumi.Input[str]] = None,
first_name_prefix: Optional[pulumi.Input[str]] = None,
first_name_regexp: Optional[pulumi.Input[str]] = None,
first_name_suffix: Optional[pulumi.Input[str]] = None,
last_name: Optional[pulumi.Input[str]] = None,
last_name_contains: Optional[pulumi.Input[str]] = None,
last_name_exclude: Optional[pulumi.Input[str]] = None,
last_name_prefix: Optional[pulumi.Input[str]] = None,
last_name_regexp: Optional[pulumi.Input[str]] = None,
last_name_suffix: Optional[pulumi.Input[str]] = None,
roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTwingateUsersResult]
func GetTwingateUsers(ctx *Context, args *GetTwingateUsersArgs, opts ...InvokeOption) (*GetTwingateUsersResult, error)
func GetTwingateUsersOutput(ctx *Context, args *GetTwingateUsersOutputArgs, opts ...InvokeOption) GetTwingateUsersResultOutput
> Note: This function is named GetTwingateUsers
in the Go SDK.
public static class GetTwingateUsers
{
public static Task<GetTwingateUsersResult> InvokeAsync(GetTwingateUsersArgs args, InvokeOptions? opts = null)
public static Output<GetTwingateUsersResult> Invoke(GetTwingateUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTwingateUsersResult> getTwingateUsers(GetTwingateUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: twingate:index/getTwingateUsers:getTwingateUsers
arguments:
# arguments dictionary
The following arguments are supported:
- Email string
- Returns only users that exactly match this email.
- Email
Contains string - Match when the value exist in the email of the user.
- Email
Exclude string - Match when the value does not exist in the email of the user.
- Email
Prefix string - The email of the user must start with the value.
- Email
Regexp string - The regular expression match of the email of the user.
- Email
Suffix string - The email of the user must end with the value.
- First
Name string - Returns only users that exactly match the first name.
- First
Name stringContains - Match when the value exist in the first name of the user.
- First
Name stringExclude - Match when the value does not exist in the first name of the user.
- First
Name stringPrefix - The first name of the user must start with the value.
- First
Name stringRegexp - The regular expression match of the first name of the user.
- First
Name stringSuffix - The first name of the user must end with the value.
- Last
Name string - Returns only users that exactly match the last name.
- Last
Name stringContains - Match when the value exist in the last name of the user.
- Last
Name stringExclude - Match when the value does not exist in the last name of the user.
- Last
Name stringPrefix - The last name of the user must start with the value.
- Last
Name stringRegexp - The regular expression match of the last name of the user.
- Last
Name stringSuffix - The last name of the user must end with the value.
- Roles List<string>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- Email string
- Returns only users that exactly match this email.
- Email
Contains string - Match when the value exist in the email of the user.
- Email
Exclude string - Match when the value does not exist in the email of the user.
- Email
Prefix string - The email of the user must start with the value.
- Email
Regexp string - The regular expression match of the email of the user.
- Email
Suffix string - The email of the user must end with the value.
- First
Name string - Returns only users that exactly match the first name.
- First
Name stringContains - Match when the value exist in the first name of the user.
- First
Name stringExclude - Match when the value does not exist in the first name of the user.
- First
Name stringPrefix - The first name of the user must start with the value.
- First
Name stringRegexp - The regular expression match of the first name of the user.
- First
Name stringSuffix - The first name of the user must end with the value.
- Last
Name string - Returns only users that exactly match the last name.
- Last
Name stringContains - Match when the value exist in the last name of the user.
- Last
Name stringExclude - Match when the value does not exist in the last name of the user.
- Last
Name stringPrefix - The last name of the user must start with the value.
- Last
Name stringRegexp - The regular expression match of the last name of the user.
- Last
Name stringSuffix - The last name of the user must end with the value.
- Roles []string
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- email String
- Returns only users that exactly match this email.
- email
Contains String - Match when the value exist in the email of the user.
- email
Exclude String - Match when the value does not exist in the email of the user.
- email
Prefix String - The email of the user must start with the value.
- email
Regexp String - The regular expression match of the email of the user.
- email
Suffix String - The email of the user must end with the value.
- first
Name String - Returns only users that exactly match the first name.
- first
Name StringContains - Match when the value exist in the first name of the user.
- first
Name StringExclude - Match when the value does not exist in the first name of the user.
- first
Name StringPrefix - The first name of the user must start with the value.
- first
Name StringRegexp - The regular expression match of the first name of the user.
- first
Name StringSuffix - The first name of the user must end with the value.
- last
Name String - Returns only users that exactly match the last name.
- last
Name StringContains - Match when the value exist in the last name of the user.
- last
Name StringExclude - Match when the value does not exist in the last name of the user.
- last
Name StringPrefix - The last name of the user must start with the value.
- last
Name StringRegexp - The regular expression match of the last name of the user.
- last
Name StringSuffix - The last name of the user must end with the value.
- roles List<String>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- email string
- Returns only users that exactly match this email.
- email
Contains string - Match when the value exist in the email of the user.
- email
Exclude string - Match when the value does not exist in the email of the user.
- email
Prefix string - The email of the user must start with the value.
- email
Regexp string - The regular expression match of the email of the user.
- email
Suffix string - The email of the user must end with the value.
- first
Name string - Returns only users that exactly match the first name.
- first
Name stringContains - Match when the value exist in the first name of the user.
- first
Name stringExclude - Match when the value does not exist in the first name of the user.
- first
Name stringPrefix - The first name of the user must start with the value.
- first
Name stringRegexp - The regular expression match of the first name of the user.
- first
Name stringSuffix - The first name of the user must end with the value.
- last
Name string - Returns only users that exactly match the last name.
- last
Name stringContains - Match when the value exist in the last name of the user.
- last
Name stringExclude - Match when the value does not exist in the last name of the user.
- last
Name stringPrefix - The last name of the user must start with the value.
- last
Name stringRegexp - The regular expression match of the last name of the user.
- last
Name stringSuffix - The last name of the user must end with the value.
- roles string[]
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- email str
- Returns only users that exactly match this email.
- email_
contains str - Match when the value exist in the email of the user.
- email_
exclude str - Match when the value does not exist in the email of the user.
- email_
prefix str - The email of the user must start with the value.
- email_
regexp str - The regular expression match of the email of the user.
- email_
suffix str - The email of the user must end with the value.
- first_
name str - Returns only users that exactly match the first name.
- first_
name_ strcontains - Match when the value exist in the first name of the user.
- first_
name_ strexclude - Match when the value does not exist in the first name of the user.
- first_
name_ strprefix - The first name of the user must start with the value.
- first_
name_ strregexp - The regular expression match of the first name of the user.
- first_
name_ strsuffix - The first name of the user must end with the value.
- last_
name str - Returns only users that exactly match the last name.
- last_
name_ strcontains - Match when the value exist in the last name of the user.
- last_
name_ strexclude - Match when the value does not exist in the last name of the user.
- last_
name_ strprefix - The last name of the user must start with the value.
- last_
name_ strregexp - The regular expression match of the last name of the user.
- last_
name_ strsuffix - The last name of the user must end with the value.
- roles Sequence[str]
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- email String
- Returns only users that exactly match this email.
- email
Contains String - Match when the value exist in the email of the user.
- email
Exclude String - Match when the value does not exist in the email of the user.
- email
Prefix String - The email of the user must start with the value.
- email
Regexp String - The regular expression match of the email of the user.
- email
Suffix String - The email of the user must end with the value.
- first
Name String - Returns only users that exactly match the first name.
- first
Name StringContains - Match when the value exist in the first name of the user.
- first
Name StringExclude - Match when the value does not exist in the first name of the user.
- first
Name StringPrefix - The first name of the user must start with the value.
- first
Name StringRegexp - The regular expression match of the first name of the user.
- first
Name StringSuffix - The first name of the user must end with the value.
- last
Name String - Returns only users that exactly match the last name.
- last
Name StringContains - Match when the value exist in the last name of the user.
- last
Name StringExclude - Match when the value does not exist in the last name of the user.
- last
Name StringPrefix - The last name of the user must start with the value.
- last
Name StringRegexp - The regular expression match of the last name of the user.
- last
Name StringSuffix - The last name of the user must end with the value.
- roles List<String>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
getTwingateUsers Result
The following output properties are available:
- Id string
- The ID of this resource.
- Users
List<Twingate.
Twingate. Outputs. Get Twingate Users User> - Email string
- Returns only users that exactly match this email.
- Email
Contains string - Match when the value exist in the email of the user.
- Email
Exclude string - Match when the value does not exist in the email of the user.
- Email
Prefix string - The email of the user must start with the value.
- Email
Regexp string - The regular expression match of the email of the user.
- Email
Suffix string - The email of the user must end with the value.
- First
Name string - Returns only users that exactly match the first name.
- First
Name stringContains - Match when the value exist in the first name of the user.
- First
Name stringExclude - Match when the value does not exist in the first name of the user.
- First
Name stringPrefix - The first name of the user must start with the value.
- First
Name stringRegexp - The regular expression match of the first name of the user.
- First
Name stringSuffix - The first name of the user must end with the value.
- Last
Name string - Returns only users that exactly match the last name.
- Last
Name stringContains - Match when the value exist in the last name of the user.
- Last
Name stringExclude - Match when the value does not exist in the last name of the user.
- Last
Name stringPrefix - The last name of the user must start with the value.
- Last
Name stringRegexp - The regular expression match of the last name of the user.
- Last
Name stringSuffix - The last name of the user must end with the value.
- Roles List<string>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- Id string
- The ID of this resource.
- Users
[]Get
Twingate Users User - Email string
- Returns only users that exactly match this email.
- Email
Contains string - Match when the value exist in the email of the user.
- Email
Exclude string - Match when the value does not exist in the email of the user.
- Email
Prefix string - The email of the user must start with the value.
- Email
Regexp string - The regular expression match of the email of the user.
- Email
Suffix string - The email of the user must end with the value.
- First
Name string - Returns only users that exactly match the first name.
- First
Name stringContains - Match when the value exist in the first name of the user.
- First
Name stringExclude - Match when the value does not exist in the first name of the user.
- First
Name stringPrefix - The first name of the user must start with the value.
- First
Name stringRegexp - The regular expression match of the first name of the user.
- First
Name stringSuffix - The first name of the user must end with the value.
- Last
Name string - Returns only users that exactly match the last name.
- Last
Name stringContains - Match when the value exist in the last name of the user.
- Last
Name stringExclude - Match when the value does not exist in the last name of the user.
- Last
Name stringPrefix - The last name of the user must start with the value.
- Last
Name stringRegexp - The regular expression match of the last name of the user.
- Last
Name stringSuffix - The last name of the user must end with the value.
- Roles []string
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- id String
- The ID of this resource.
- users
List<Get
Twingate Users User> - email String
- Returns only users that exactly match this email.
- email
Contains String - Match when the value exist in the email of the user.
- email
Exclude String - Match when the value does not exist in the email of the user.
- email
Prefix String - The email of the user must start with the value.
- email
Regexp String - The regular expression match of the email of the user.
- email
Suffix String - The email of the user must end with the value.
- first
Name String - Returns only users that exactly match the first name.
- first
Name StringContains - Match when the value exist in the first name of the user.
- first
Name StringExclude - Match when the value does not exist in the first name of the user.
- first
Name StringPrefix - The first name of the user must start with the value.
- first
Name StringRegexp - The regular expression match of the first name of the user.
- first
Name StringSuffix - The first name of the user must end with the value.
- last
Name String - Returns only users that exactly match the last name.
- last
Name StringContains - Match when the value exist in the last name of the user.
- last
Name StringExclude - Match when the value does not exist in the last name of the user.
- last
Name StringPrefix - The last name of the user must start with the value.
- last
Name StringRegexp - The regular expression match of the last name of the user.
- last
Name StringSuffix - The last name of the user must end with the value.
- roles List<String>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- id string
- The ID of this resource.
- users
Get
Twingate Users User[] - email string
- Returns only users that exactly match this email.
- email
Contains string - Match when the value exist in the email of the user.
- email
Exclude string - Match when the value does not exist in the email of the user.
- email
Prefix string - The email of the user must start with the value.
- email
Regexp string - The regular expression match of the email of the user.
- email
Suffix string - The email of the user must end with the value.
- first
Name string - Returns only users that exactly match the first name.
- first
Name stringContains - Match when the value exist in the first name of the user.
- first
Name stringExclude - Match when the value does not exist in the first name of the user.
- first
Name stringPrefix - The first name of the user must start with the value.
- first
Name stringRegexp - The regular expression match of the first name of the user.
- first
Name stringSuffix - The first name of the user must end with the value.
- last
Name string - Returns only users that exactly match the last name.
- last
Name stringContains - Match when the value exist in the last name of the user.
- last
Name stringExclude - Match when the value does not exist in the last name of the user.
- last
Name stringPrefix - The last name of the user must start with the value.
- last
Name stringRegexp - The regular expression match of the last name of the user.
- last
Name stringSuffix - The last name of the user must end with the value.
- roles string[]
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- id str
- The ID of this resource.
- users
Sequence[Get
Twingate Users User] - email str
- Returns only users that exactly match this email.
- email_
contains str - Match when the value exist in the email of the user.
- email_
exclude str - Match when the value does not exist in the email of the user.
- email_
prefix str - The email of the user must start with the value.
- email_
regexp str - The regular expression match of the email of the user.
- email_
suffix str - The email of the user must end with the value.
- first_
name str - Returns only users that exactly match the first name.
- first_
name_ strcontains - Match when the value exist in the first name of the user.
- first_
name_ strexclude - Match when the value does not exist in the first name of the user.
- first_
name_ strprefix - The first name of the user must start with the value.
- first_
name_ strregexp - The regular expression match of the first name of the user.
- first_
name_ strsuffix - The first name of the user must end with the value.
- last_
name str - Returns only users that exactly match the last name.
- last_
name_ strcontains - Match when the value exist in the last name of the user.
- last_
name_ strexclude - Match when the value does not exist in the last name of the user.
- last_
name_ strprefix - The last name of the user must start with the value.
- last_
name_ strregexp - The regular expression match of the last name of the user.
- last_
name_ strsuffix - The last name of the user must end with the value.
- roles Sequence[str]
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
- id String
- The ID of this resource.
- users List<Property Map>
- email String
- Returns only users that exactly match this email.
- email
Contains String - Match when the value exist in the email of the user.
- email
Exclude String - Match when the value does not exist in the email of the user.
- email
Prefix String - The email of the user must start with the value.
- email
Regexp String - The regular expression match of the email of the user.
- email
Suffix String - The email of the user must end with the value.
- first
Name String - Returns only users that exactly match the first name.
- first
Name StringContains - Match when the value exist in the first name of the user.
- first
Name StringExclude - Match when the value does not exist in the first name of the user.
- first
Name StringPrefix - The first name of the user must start with the value.
- first
Name StringRegexp - The regular expression match of the first name of the user.
- first
Name StringSuffix - The first name of the user must end with the value.
- last
Name String - Returns only users that exactly match the last name.
- last
Name StringContains - Match when the value exist in the last name of the user.
- last
Name StringExclude - Match when the value does not exist in the last name of the user.
- last
Name StringPrefix - The last name of the user must start with the value.
- last
Name StringRegexp - The regular expression match of the last name of the user.
- last
Name StringSuffix - The last name of the user must end with the value.
- roles List<String>
- Returns users that match a list of roles. Valid roles:
ADMIN
,DEVOPS
,SUPPORT
,MEMBER
.
Supporting Types
GetTwingateUsersUser
Package Details
- Repository
- twingate Twingate/pulumi-twingate
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
twingate
Terraform Provider.