prefect 2.89.0 published on Thursday, Oct 16, 2025 by prefecthq
prefect.getAccountMember
prefect 2.89.0 published on Thursday, Oct 16, 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): Hobby, Starter, Team, Pro, Enterprise.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prefect from "@pulumi/prefect";
const marvin = prefect.getAccountMember({
    email: "marvin@prefect.io",
});
import pulumi
import pulumi_prefect as prefect
marvin = prefect.get_account_member(email="marvin@prefect.io")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  marvin:
    fn::invoke:
      function: prefect:getAccountMember
      arguments:
        email: marvin@prefect.io
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>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]func LookupAccountMember(ctx *Context, args *LookupAccountMemberArgs, opts ...InvokeOption) (*LookupAccountMemberResult, error)
func LookupAccountMemberOutput(ctx *Context, args *LookupAccountMemberOutputArgs, opts ...InvokeOption) LookupAccountMemberResultOutput> 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)
}public static CompletableFuture<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
public static Output<GetAccountMemberResult> getAccountMember(GetAccountMemberArgs args, InvokeOptions options)
fn::invoke:
  function: prefect:index/getAccountMember:getAccountMember
  arguments:
    # arguments dictionaryThe following arguments are supported:
- email str
- Member email
- account_id str
- Account ID (UUID) where the member resides
getAccountMember Result
The following output properties are available:
- AccountRole stringId 
- Acount Role ID (UUID)
- AccountRole stringName 
- 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
- AccountRole stringId 
- Acount Role ID (UUID)
- AccountRole stringName 
- 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
- accountRole StringId 
- Acount Role ID (UUID)
- accountRole StringName 
- 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
- accountRole stringId 
- Acount Role ID (UUID)
- accountRole stringName 
- 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_ strid 
- Acount Role ID (UUID)
- account_role_ strname 
- 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
- accountRole StringId 
- Acount Role ID (UUID)
- accountRole StringName 
- 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 prefectTerraform Provider.
prefect 2.89.0 published on Thursday, Oct 16, 2025 by prefecthq
