Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Retrieve all users
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
// return all users in the dbt Cloud account
const all = dbtcloud.getUsers({});
const userDetails = all.then(all => .filter(user => user.email == "example@amail.com").map(user => (user)));
const userExist = userDetails.length.apply(length => length == 1);
import pulumi
import pulumi_dbtcloud as dbtcloud
# return all users in the dbt Cloud account
all = dbtcloud.get_users()
user_details = [user for user in all.users if user.email == "example@amail.com"]
user_exist = len(user_details).apply(lambda length: length == 1)
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
// return all users in the dbt Cloud account
var all = DbtCloud.GetUsers.Invoke();
var userDetails = .Where(user => user.Email == "example@amail.com").Select(user =>
{
return user;
}).ToList();
var userExist = userDetails.Length.Apply(length => length == 1);
});
Example coming soon!
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(opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(opts?: InvokeOptions): Output<GetUsersResult>def get_users(opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetUsersResult> getUsers(InvokeOptions options)
public static Output<GetUsersResult> getUsers(InvokeOptions options)
fn::invoke:
function: dbtcloud:index/getUsers:getUsers
arguments:
# arguments dictionarygetUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Pulumi.
Dbt Cloud. Outputs. Get Users User> - Set of users with their internal ID end email
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Get
Users User - Set of users with their internal ID end email
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Get
Users User> - Set of users with their internal ID end email
- id string
- The provider-assigned unique ID for this managed resource.
- users
Get
Users User[] - Set of users with their internal ID end email
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Get
Users User] - Set of users with their internal ID end email
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
- Set of users with their internal ID end email
Supporting Types
GetUsersUser
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloudTerraform Provider.
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
