1. Packages
  2. Prefect Provider
  3. API Docs
  4. getAccountMember
prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq

prefect.getAccountMember

Explore with Pulumi AI

prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq

Get information about an existing Account Member (user) by their email.
Use this data source to obtain user or actor IDs to manage Workspace Access.
For more information, see manage account roles.

This feature is available in the following product plan(s): Prefect Cloud (Free), Prefect Cloud (Pro), Prefect Cloud (Enterprise).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as prefect from "@pulumi/prefect";

const marvin = prefect.getAccountMember({
    email: "marvin@prefect.io",
});
Copy
import pulumi
import pulumi_prefect as prefect

marvin = prefect.get_account_member(email="marvin@prefect.io")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prefect/v2/prefect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := prefect.LookupAccountMember(ctx, &prefect.LookupAccountMemberArgs{
			Email: "marvin@prefect.io",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prefect = Pulumi.Prefect;

return await Deployment.RunAsync(() => 
{
    var marvin = Prefect.GetAccountMember.Invoke(new()
    {
        Email = "marvin@prefect.io",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prefect.PrefectFunctions;
import com.pulumi.prefect.inputs.GetAccountMemberArgs;
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 marvin = PrefectFunctions.getAccountMember(GetAccountMemberArgs.builder()
            .email("marvin@prefect.io")
            .build());

    }
}
Copy
variables:
  marvin:
    fn::invoke:
      function: prefect:getAccountMember
      arguments:
        email: marvin@prefect.io
Copy

Using getAccountMember

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 getAccountMember(args: GetAccountMemberArgs, opts?: InvokeOptions): Promise<GetAccountMemberResult>
function getAccountMemberOutput(args: GetAccountMemberOutputArgs, opts?: InvokeOptions): Output<GetAccountMemberResult>
Copy
def get_account_member(account_id: Optional[str] = None,
                       email: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAccountMemberResult
def get_account_member_output(account_id: Optional[pulumi.Input[str]] = None,
                       email: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAccountMemberResult]
Copy
func LookupAccountMember(ctx *Context, args *LookupAccountMemberArgs, opts ...InvokeOption) (*LookupAccountMemberResult, error)
func LookupAccountMemberOutput(ctx *Context, args *LookupAccountMemberOutputArgs, opts ...InvokeOption) LookupAccountMemberResultOutput
Copy

> Note: This function is named LookupAccountMember in the Go SDK.

public static class GetAccountMember 
{
    public static Task<GetAccountMemberResult> InvokeAsync(GetAccountMemberArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountMemberResult> Invoke(GetAccountMemberInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
public static Output<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: prefect:index/getAccountMember:getAccountMember
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Email This property is required. string
Member email
AccountId string
Account ID (UUID) where the member resides
Email This property is required. string
Member email
AccountId string
Account ID (UUID) where the member resides
email This property is required. String
Member email
accountId String
Account ID (UUID) where the member resides
email This property is required. string
Member email
accountId string
Account ID (UUID) where the member resides
email This property is required. str
Member email
account_id str
Account ID (UUID) where the member resides
email This property is required. String
Member email
accountId String
Account ID (UUID) where the member resides

getAccountMember Result

The following output properties are available:

AccountRoleId string
Acount Role ID (UUID)
AccountRoleName string
Name of Account Role assigned to member
ActorId string
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
Email string
Member email
FirstName string
Member's first name
Handle string
Member handle, or a human-readable identifier
Id string
Account Member ID (UUID)
LastName string
Member's last name
UserId string
User ID (UUID)
AccountId string
Account ID (UUID) where the member resides
AccountRoleId string
Acount Role ID (UUID)
AccountRoleName string
Name of Account Role assigned to member
ActorId string
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
Email string
Member email
FirstName string
Member's first name
Handle string
Member handle, or a human-readable identifier
Id string
Account Member ID (UUID)
LastName string
Member's last name
UserId string
User ID (UUID)
AccountId string
Account ID (UUID) where the member resides
accountRoleId String
Acount Role ID (UUID)
accountRoleName String
Name of Account Role assigned to member
actorId String
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
email String
Member email
firstName String
Member's first name
handle String
Member handle, or a human-readable identifier
id String
Account Member ID (UUID)
lastName String
Member's last name
userId String
User ID (UUID)
accountId String
Account ID (UUID) where the member resides
accountRoleId string
Acount Role ID (UUID)
accountRoleName string
Name of Account Role assigned to member
actorId string
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
email string
Member email
firstName string
Member's first name
handle string
Member handle, or a human-readable identifier
id string
Account Member ID (UUID)
lastName string
Member's last name
userId string
User ID (UUID)
accountId string
Account ID (UUID) where the member resides
account_role_id str
Acount Role ID (UUID)
account_role_name str
Name of Account Role assigned to member
actor_id str
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
email str
Member email
first_name str
Member's first name
handle str
Member handle, or a human-readable identifier
id str
Account Member ID (UUID)
last_name str
Member's last name
user_id str
User ID (UUID)
account_id str
Account ID (UUID) where the member resides
accountRoleId String
Acount Role ID (UUID)
accountRoleName String
Name of Account Role assigned to member
actorId String
Actor ID (UUID), used for granting access to resources like Blocks and Deployments
email String
Member email
firstName String
Member's first name
handle String
Member handle, or a human-readable identifier
id String
Account Member ID (UUID)
lastName String
Member's last name
userId String
User ID (UUID)
accountId String
Account ID (UUID) where the member resides

Package Details

Repository
prefect prefecthq/terraform-provider-prefect
License
Notes
This Pulumi package is based on the prefect Terraform Provider.
prefect 2.24.0 published on Wednesday, Apr 2, 2025 by prefecthq