Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as googleworkspace from "@pulumi/googleworkspace";
const my-domain-users = googleworkspace.getUsers({});
export const numUsers = my_domain_users.then(my_domain_users => my_domain_users.users).length;
import pulumi
import pulumi_googleworkspace as googleworkspace
my_domain_users = googleworkspace.get_users()
pulumi.export("numUsers", len(my_domain_users.users))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/googleworkspace/googleworkspace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
my_domain_users, err := googleworkspace.GetUsers(ctx, &googleworkspace.GetUsersArgs{}, nil)
if err != nil {
return err
}
ctx.Export("numUsers", pulumi.Int(len(my_domain_users.Users)))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Googleworkspace = Pulumi.Googleworkspace;
return await Deployment.RunAsync(() =>
{
var my_domain_users = Googleworkspace.GetUsers.Invoke();
return new Dictionary<string, object?>
{
["numUsers"] = my_domain_users.Apply(my_domain_users => my_domain_users.Apply(getUsersResult => getUsersResult.Users)).Length,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.googleworkspace.GoogleworkspaceFunctions;
import com.pulumi.googleworkspace.inputs.GetUsersArgs;
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 my-domain-users = GoogleworkspaceFunctions.getUsers();
ctx.export("numUsers", my_domain_users.users().length());
}
}
Example coming soon!
Using getUsers
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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOptions): Output<GetUsersResult>def get_users(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
fn::invoke:
function: googleworkspace:index/getUsers:getUsers
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The ID of this resource.
- Id string
- The ID of this resource.
- id String
- The ID of this resource.
- id string
- The ID of this resource.
- id str
- The ID of this resource.
- id String
- The ID of this resource.
getUsers Result
The following output properties are available:
- Id string
- The ID of this resource.
- Users
List<Get
Users User> - A list of User resources.
- Id string
- The ID of this resource.
- Users
[]Get
Users User - A list of User resources.
- id String
- The ID of this resource.
- users
List<Get
Users User> - A list of User resources.
- id string
- The ID of this resource.
- users
Get
Users User[] - A list of User resources.
- id str
- The ID of this resource.
- users
Sequence[Get
Users User] - A list of User resources.
- id String
- The ID of this resource.
- users List<Property Map>
- A list of User resources.
Supporting Types
GetUsersUser
- Addresses
List<Get
Users User Address> - Agreed
To boolTerms - Aliases List<string>
- Archived bool
- Change
Password boolAt Next Login - Creation
Time string - Custom
Schemas List<GetUsers User Custom Schema> - Customer
Id string - Deletion
Time string - Emails
List<Get
Users User Email> - Etag string
- External
Ids List<GetUsers User External Id> - Hash
Function string - Id string
- Ims
List<Get
Users User Im> - Include
In boolGlobal Address List - Ip
Allowlist bool - Is
Admin bool - Is
Delegated boolAdmin - Is
Enforced boolIn2Step Verification - Is
Enrolled boolIn2Step Verification - Is
Mailbox boolSetup - Keywords
List<Get
Users User Keyword> - Languages
List<Get
Users User Language> - Last
Login stringTime - Locations
List<Get
Users User Location> - Names
List<Get
Users User Name> - Non
Editable List<string>Aliases - Org
Unit stringPath - Organizations
List<Get
Users User Organization> - Password string
- Phones
List<Get
Users User Phone> - Posix
Accounts List<GetUsers User Posix Account> - Primary
Email string - Recovery
Email string - Recovery
Phone string - Relations
List<Get
Users User Relation> - Ssh
Public List<GetKeys Users User Ssh Public Key> - Suspended bool
- Suspension
Reason string - Thumbnail
Photo stringEtag - Thumbnail
Photo stringUrl - Websites
List<Get
Users User Website>
- Addresses
[]Get
Users User Address - Agreed
To boolTerms - Aliases []string
- Archived bool
- Change
Password boolAt Next Login - Creation
Time string - Custom
Schemas []GetUsers User Custom Schema - Customer
Id string - Deletion
Time string - Emails
[]Get
Users User Email - Etag string
- External
Ids []GetUsers User External Id - Hash
Function string - Id string
- Ims
[]Get
Users User Im - Include
In boolGlobal Address List - Ip
Allowlist bool - Is
Admin bool - Is
Delegated boolAdmin - Is
Enforced boolIn2Step Verification - Is
Enrolled boolIn2Step Verification - Is
Mailbox boolSetup - Keywords
[]Get
Users User Keyword - Languages
[]Get
Users User Language - Last
Login stringTime - Locations
[]Get
Users User Location - Names
[]Get
Users User Name - Non
Editable []stringAliases - Org
Unit stringPath - Organizations
[]Get
Users User Organization - Password string
- Phones
[]Get
Users User Phone - Posix
Accounts []GetUsers User Posix Account - Primary
Email string - Recovery
Email string - Recovery
Phone string - Relations
[]Get
Users User Relation - Ssh
Public []GetKeys Users User Ssh Public Key - Suspended bool
- Suspension
Reason string - Thumbnail
Photo stringEtag - Thumbnail
Photo stringUrl - Websites
[]Get
Users User Website
- addresses
List<Get
Users User Address> - agreed
To BooleanTerms - aliases List<String>
- archived Boolean
- change
Password BooleanAt Next Login - creation
Time String - custom
Schemas List<GetUsers User Custom Schema> - customer
Id String - deletion
Time String - emails
List<Get
Users User Email> - etag String
- external
Ids List<GetUsers User External Id> - hash
Function String - id String
- ims
List<Get
Users User Im> - include
In BooleanGlobal Address List - ip
Allowlist Boolean - is
Admin Boolean - is
Delegated BooleanAdmin - is
Enforced BooleanIn2Step Verification - is
Enrolled BooleanIn2Step Verification - is
Mailbox BooleanSetup - keywords
List<Get
Users User Keyword> - languages
List<Get
Users User Language> - last
Login StringTime - locations
List<Get
Users User Location> - names
List<Get
Users User Name> - non
Editable List<String>Aliases - org
Unit StringPath - organizations
List<Get
Users User Organization> - password String
- phones
List<Get
Users User Phone> - posix
Accounts List<GetUsers User Posix Account> - primary
Email String - recovery
Email String - recovery
Phone String - relations
List<Get
Users User Relation> - ssh
Public List<GetKeys Users User Ssh Public Key> - suspended Boolean
- suspension
Reason String - thumbnail
Photo StringEtag - thumbnail
Photo StringUrl - websites
List<Get
Users User Website>
- addresses
Get
Users User Address[] - agreed
To booleanTerms - aliases string[]
- archived boolean
- change
Password booleanAt Next Login - creation
Time string - custom
Schemas GetUsers User Custom Schema[] - customer
Id string - deletion
Time string - emails
Get
Users User Email[] - etag string
- external
Ids GetUsers User External Id[] - hash
Function string - id string
- ims
Get
Users User Im[] - include
In booleanGlobal Address List - ip
Allowlist boolean - is
Admin boolean - is
Delegated booleanAdmin - is
Enforced booleanIn2Step Verification - is
Enrolled booleanIn2Step Verification - is
Mailbox booleanSetup - keywords
Get
Users User Keyword[] - languages
Get
Users User Language[] - last
Login stringTime - locations
Get
Users User Location[] - names
Get
Users User Name[] - non
Editable string[]Aliases - org
Unit stringPath - organizations
Get
Users User Organization[] - password string
- phones
Get
Users User Phone[] - posix
Accounts GetUsers User Posix Account[] - primary
Email string - recovery
Email string - recovery
Phone string - relations
Get
Users User Relation[] - ssh
Public GetKeys Users User Ssh Public Key[] - suspended boolean
- suspension
Reason string - thumbnail
Photo stringEtag - thumbnail
Photo stringUrl - websites
Get
Users User Website[]
- addresses
Sequence[Get
Users User Address] - agreed_
to_ boolterms - aliases Sequence[str]
- archived bool
- change_
password_ boolat_ next_ login - creation_
time str - custom_
schemas Sequence[GetUsers User Custom Schema] - customer_
id str - deletion_
time str - emails
Sequence[Get
Users User Email] - etag str
- external_
ids Sequence[GetUsers User External Id] - hash_
function str - id str
- ims
Sequence[Get
Users User Im] - include_
in_ boolglobal_ address_ list - ip_
allowlist bool - is_
admin bool - is_
delegated_ booladmin - is_
enforced_ boolin2_ step_ verification - is_
enrolled_ boolin2_ step_ verification - is_
mailbox_ boolsetup - keywords
Sequence[Get
Users User Keyword] - languages
Sequence[Get
Users User Language] - last_
login_ strtime - locations
Sequence[Get
Users User Location] - names
Sequence[Get
Users User Name] - non_
editable_ Sequence[str]aliases - org_
unit_ strpath - organizations
Sequence[Get
Users User Organization] - password str
- phones
Sequence[Get
Users User Phone] - posix_
accounts Sequence[GetUsers User Posix Account] - primary_
email str - recovery_
email str - recovery_
phone str - relations
Sequence[Get
Users User Relation] - ssh_
public_ Sequence[Getkeys Users User Ssh Public Key] - suspended bool
- suspension_
reason str - thumbnail_
photo_ stretag - thumbnail_
photo_ strurl - websites
Sequence[Get
Users User Website]
- addresses List<Property Map>
- agreed
To BooleanTerms - aliases List<String>
- archived Boolean
- change
Password BooleanAt Next Login - creation
Time String - custom
Schemas List<Property Map> - customer
Id String - deletion
Time String - emails List<Property Map>
- etag String
- external
Ids List<Property Map> - hash
Function String - id String
- ims List<Property Map>
- include
In BooleanGlobal Address List - ip
Allowlist Boolean - is
Admin Boolean - is
Delegated BooleanAdmin - is
Enforced BooleanIn2Step Verification - is
Enrolled BooleanIn2Step Verification - is
Mailbox BooleanSetup - keywords List<Property Map>
- languages List<Property Map>
- last
Login StringTime - locations List<Property Map>
- names List<Property Map>
- non
Editable List<String>Aliases - org
Unit StringPath - organizations List<Property Map>
- password String
- phones List<Property Map>
- posix
Accounts List<Property Map> - primary
Email String - recovery
Email String - recovery
Phone String - relations List<Property Map>
- ssh
Public List<Property Map>Keys - suspended Boolean
- suspension
Reason String - thumbnail
Photo StringEtag - thumbnail
Photo StringUrl - websites List<Property Map>
GetUsersUserAddress
- Country string
- Country
Code string - Custom
Type string - Extended
Address string - Formatted string
- Locality string
- Po
Box string - Postal
Code string - Primary bool
- Region string
- Source
Is boolStructured - Street
Address string - Type string
- Country string
- Country
Code string - Custom
Type string - Extended
Address string - Formatted string
- Locality string
- Po
Box string - Postal
Code string - Primary bool
- Region string
- Source
Is boolStructured - Street
Address string - Type string
- country String
- country
Code String - custom
Type String - extended
Address String - formatted String
- locality String
- po
Box String - postal
Code String - primary Boolean
- region String
- source
Is BooleanStructured - street
Address String - type String
- country string
- country
Code string - custom
Type string - extended
Address string - formatted string
- locality string
- po
Box string - postal
Code string - primary boolean
- region string
- source
Is booleanStructured - street
Address string - type string
- country str
- country_
code str - custom_
type str - extended_
address str - formatted str
- locality str
- po_
box str - postal_
code str - primary bool
- region str
- source_
is_ boolstructured - street_
address str - type str
- country String
- country
Code String - custom
Type String - extended
Address String - formatted String
- locality String
- po
Box String - postal
Code String - primary Boolean
- region String
- source
Is BooleanStructured - street
Address String - type String
GetUsersUserCustomSchema
- Schema
Name string - Schema
Values Dictionary<string, string>
- Schema
Name string - Schema
Values map[string]string
- schema
Name String - schema
Values Map<String,String>
- schema
Name string - schema
Values {[key: string]: string}
- schema_
name str - schema_
values Mapping[str, str]
- schema
Name String - schema
Values Map<String>
GetUsersUserEmail
- Address string
- Custom
Type string - Primary bool
- Type string
- Address string
- Custom
Type string - Primary bool
- Type string
- address String
- custom
Type String - primary Boolean
- type String
- address string
- custom
Type string - primary boolean
- type string
- address str
- custom_
type str - primary bool
- type str
- address String
- custom
Type String - primary Boolean
- type String
GetUsersUserExternalId
- Custom
Type string - Type string
- Value string
- Custom
Type string - Type string
- Value string
- custom
Type String - type String
- value String
- custom
Type string - type string
- value string
- custom_
type str - type str
- value str
- custom
Type String - type String
- value String
GetUsersUserIm
- Custom
Protocol string - Custom
Type string - Im string
- Primary bool
- Protocol string
- Type string
- Custom
Protocol string - Custom
Type string - Im string
- Primary bool
- Protocol string
- Type string
- custom
Protocol String - custom
Type String - im String
- primary Boolean
- protocol String
- type String
- custom
Protocol string - custom
Type string - im string
- primary boolean
- protocol string
- type string
- custom_
protocol str - custom_
type str - im str
- primary bool
- protocol str
- type str
- custom
Protocol String - custom
Type String - im String
- primary Boolean
- protocol String
- type String
GetUsersUserKeyword
- Custom
Type string - Type string
- Value string
- Custom
Type string - Type string
- Value string
- custom
Type String - type String
- value String
- custom
Type string - type string
- value string
- custom_
type str - type str
- value str
- custom
Type String - type String
- value String
GetUsersUserLanguage
- Custom
Language string - Language
Code string - Preference string
- Custom
Language string - Language
Code string - Preference string
- custom
Language String - language
Code String - preference String
- custom
Language string - language
Code string - preference string
- custom_
language str - language_
code str - preference str
- custom
Language String - language
Code String - preference String
GetUsersUserLocation
- Area string
- Building
Id string - Custom
Type string - Desk
Code string - Floor
Name string - Floor
Section string - Type string
- Area string
- Building
Id string - Custom
Type string - Desk
Code string - Floor
Name string - Floor
Section string - Type string
- area String
- building
Id String - custom
Type String - desk
Code String - floor
Name String - floor
Section String - type String
- area string
- building
Id string - custom
Type string - desk
Code string - floor
Name string - floor
Section string - type string
- area str
- building_
id str - custom_
type str - desk_
code str - floor_
name str - floor_
section str - type str
- area String
- building
Id String - custom
Type String - desk
Code String - floor
Name String - floor
Section String - type String
GetUsersUserName
- Family
Name string - Full
Name string - Given
Name string
- Family
Name string - Full
Name string - Given
Name string
- family
Name String - full
Name String - given
Name String
- family
Name string - full
Name string - given
Name string
- family_
name str - full_
name str - given_
name str
- family
Name String - full
Name String - given
Name String
GetUsersUserOrganization
- Cost
Center string - Custom
Type string - Department string
- Description string
- Domain string
- Full
Time doubleEquivalent - Location string
- Name string
- Primary bool
- Symbol string
- Title string
- Type string
- Cost
Center string - Custom
Type string - Department string
- Description string
- Domain string
- Full
Time float64Equivalent - Location string
- Name string
- Primary bool
- Symbol string
- Title string
- Type string
- cost
Center String - custom
Type String - department String
- description String
- domain String
- full
Time DoubleEquivalent - location String
- name String
- primary Boolean
- symbol String
- title String
- type String
- cost
Center string - custom
Type string - department string
- description string
- domain string
- full
Time numberEquivalent - location string
- name string
- primary boolean
- symbol string
- title string
- type string
- cost_
center str - custom_
type str - department str
- description str
- domain str
- full_
time_ floatequivalent - location str
- name str
- primary bool
- symbol str
- title str
- type str
- cost
Center String - custom
Type String - department String
- description String
- domain String
- full
Time NumberEquivalent - location String
- name String
- primary Boolean
- symbol String
- title String
- type String
GetUsersUserPhone
- Custom
Type string - Primary bool
- Type string
- Value string
- Custom
Type string - Primary bool
- Type string
- Value string
- custom
Type String - primary Boolean
- type String
- value String
- custom
Type string - primary boolean
- type string
- value string
- custom_
type str - primary bool
- type str
- value str
- custom
Type String - primary Boolean
- type String
- value String
GetUsersUserPosixAccount
- Account
Id string - Gecos string
- Gid string
- Home
Directory string - Operating
System stringType - Primary bool
- Shell string
- System
Id string - Uid string
- Username string
- Account
Id string - Gecos string
- Gid string
- Home
Directory string - Operating
System stringType - Primary bool
- Shell string
- System
Id string - Uid string
- Username string
- account
Id String - gecos String
- gid String
- home
Directory String - operating
System StringType - primary Boolean
- shell String
- system
Id String - uid String
- username String
- account
Id string - gecos string
- gid string
- home
Directory string - operating
System stringType - primary boolean
- shell string
- system
Id string - uid string
- username string
- account_
id str - gecos str
- gid str
- home_
directory str - operating_
system_ strtype - primary bool
- shell str
- system_
id str - uid str
- username str
- account
Id String - gecos String
- gid String
- home
Directory String - operating
System StringType - primary Boolean
- shell String
- system
Id String - uid String
- username String
GetUsersUserRelation
- Custom
Type string - Type string
- Value string
- Custom
Type string - Type string
- Value string
- custom
Type String - type String
- value String
- custom
Type string - type string
- value string
- custom_
type str - type str
- value str
- custom
Type String - type String
- value String
GetUsersUserSshPublicKey
- Expiration
Time stringUsec - Fingerprint string
- Key string
- Expiration
Time stringUsec - Fingerprint string
- Key string
- expiration
Time StringUsec - fingerprint String
- key String
- expiration
Time stringUsec - fingerprint string
- key string
- expiration_
time_ strusec - fingerprint str
- key str
- expiration
Time StringUsec - fingerprint String
- key String
GetUsersUserWebsite
- Custom
Type string - Primary bool
- Type string
- Value string
- Custom
Type string - Primary bool
- Type string
- Value string
- custom
Type String - primary Boolean
- type String
- value String
- custom
Type string - primary boolean
- type string
- value string
- custom_
type str - primary bool
- type str
- value str
- custom
Type String - primary Boolean
- type String
- value String
Package Details
- Repository
- googleworkspace hashicorp/terraform-provider-googleworkspace
- License
- Notes
- This Pulumi package is based on the
googleworkspaceTerraform Provider.
Viewing docs for googleworkspace 0.7.0
published on Wednesday, Jan 15, 2025 by hashicorp
published on Wednesday, Jan 15, 2025 by hashicorp
