prefect 2.26.1 published on Friday, May 9, 2025 by prefecthq
prefect.getAccountMembers
Explore with Pulumi AI
Get information about all members of account.
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 allMembers = prefect.getAccountMembers({});
import pulumi
import pulumi_prefect as prefect
all_members = prefect.get_account_members()
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.GetAccountMembers(ctx, &prefect.GetAccountMembersArgs{}, 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 allMembers = Prefect.GetAccountMembers.Invoke();
});
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.GetAccountMembersArgs;
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 allMembers = PrefectFunctions.getAccountMembers();
    }
}
variables:
  allMembers:
    fn::invoke:
      function: prefect:getAccountMembers
      arguments: {}
Using getAccountMembers
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 getAccountMembers(args: GetAccountMembersArgs, opts?: InvokeOptions): Promise<GetAccountMembersResult>
function getAccountMembersOutput(args: GetAccountMembersOutputArgs, opts?: InvokeOptions): Output<GetAccountMembersResult>def get_account_members(account_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAccountMembersResult
def get_account_members_output(account_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAccountMembersResult]func GetAccountMembers(ctx *Context, args *GetAccountMembersArgs, opts ...InvokeOption) (*GetAccountMembersResult, error)
func GetAccountMembersOutput(ctx *Context, args *GetAccountMembersOutputArgs, opts ...InvokeOption) GetAccountMembersResultOutput> Note: This function is named GetAccountMembers in the Go SDK.
public static class GetAccountMembers 
{
    public static Task<GetAccountMembersResult> InvokeAsync(GetAccountMembersArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountMembersResult> Invoke(GetAccountMembersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccountMembersResult> getAccountMembers(GetAccountMembersArgs args, InvokeOptions options)
public static Output<GetAccountMembersResult> getAccountMembers(GetAccountMembersArgs args, InvokeOptions options)
fn::invoke:
  function: prefect:index/getAccountMembers:getAccountMembers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- accountId string
- Account ID (UUID), defaults to the account set in the provider
- account_id str
- Account ID (UUID), defaults to the account set in the provider
- accountId String
- Account ID (UUID), defaults to the account set in the provider
getAccountMembers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Members
List<GetAccount Members Member> 
- List of Account members of an account
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- Id string
- The provider-assigned unique ID for this managed resource.
- Members
[]GetAccount Members Member 
- List of Account members of an account
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- id String
- The provider-assigned unique ID for this managed resource.
- members
List<GetAccount Members Member> 
- List of Account members of an account
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- id string
- The provider-assigned unique ID for this managed resource.
- members
GetAccount Members Member[] 
- List of Account members of an account
- accountId string
- Account ID (UUID), defaults to the account set in the provider
- id str
- The provider-assigned unique ID for this managed resource.
- members
Sequence[GetAccount Members Member] 
- List of Account members of an account
- account_id str
- Account ID (UUID), defaults to the account set in the provider
- id String
- The provider-assigned unique ID for this managed resource.
- members List<Property Map>
- List of Account members of an account
- accountId String
- Account ID (UUID), defaults to the account set in the provider
Supporting Types
GetAccountMembersMember   
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
Package Details
- Repository
- prefect prefecthq/terraform-provider-prefect
- License
- Notes
- This Pulumi package is based on the prefectTerraform Provider.