pulumi/pulumi · error
editing an organization member requires the Pulumi Cloud…
Error message
editing an organization member requires the Pulumi Cloud backend; run `pulumi login`
What it means
The `pulumi org member edit` command only works against the Pulumi Cloud (hosted service) backend, because organization membership management is a cloud-API-only feature. During command setup, the resolved backend is asserted via a Go type assertion `be.(httpstate.Backend)`; when the currently logged-in backend is anything else (e.g. a self-hosted Pulumi Cloud or a local/diy backend), the assertion fails and this error is returned instead of proceeding.
Solutions
- Run `pulumi login` (no arguments) to log in to the Pulumi Cloud backend at app.pulumi.com
- Verify the active backend with `pulumi whoami -v` and check the backend URL
- Unset PULUMI_BACKEND_URL / PULUMI_CONFIG_PASSPHRASE-based local backends in your environment before running org commands
- Re-run the command: pulumi org member edit <user-login> --role <role>
Example fix
// before (shell) pulumi login --local pulumi org member edit alice --role admin // error: requires the Pulumi Cloud backend // after (shell) pulumi login # defaults to https://app.pulumi.com pulumi org member edit alice --role admin
Defensive patterns
Strategy: type-guard
Validate before calling
// shell, before running org commands pulumi whoami -v | grep -i 'backend' # expect https://app.pulumi.com # if not: pulumi login
Type guard
// Go, mirror the library's own check
func asCloudBackend(be backend.Backend) (httpstate.Backend, bool) {
cb, ok := be.(httpstate.Backend)
return cb, ok
}
// in caller:
// cb, ok := asCloudBackend(be); if !ok { /* prompt re-login */ } Try / catch
// Go (CLI returns error)
if err := runOrgEdit(...); err != nil && strings.Contains(err.Error(), "requires the Pulumi Cloud backend") {
// instruct user / exec: pulumi login
return fmt.Errorf("please re-authenticate with the cloud backend: %w", err)
} Prevention
- Always `pulumi login` (cloud) before org administration commands
- Check `pulumi whoami -v` in scripts and fail fast on non-cloud backends
- Avoid PULUMI_BACKEND_URL=file:// in environments where you run org commands
- Pin CI to cloud auth via PULUMI_ACCESS_TOKEN with `pulumi login`
When it happens
Trigger: Running `pulumi org member edit` while logged in with `pulumi login --local` (file backend), or against a non-cloud backend (e.g. PULUMI_BACKEND_URL pointing to a self-hosted state backend or `file://`), so CurrentBackend returns a backend that does not implement httpstate.Backend.
Common situations: Developer testing locally with the file backend for state management; CI container that ran `pulumi login file://~/.pulumi`; switching from a local dev workflow to org administration without re-logging into app.pulumi.com.
Related errors
- listing organization members requires the Pulumi Cloud…
- organization roles require the Pulumi Cloud backend; run…
- removing an organization member requires the Pulumi Cloud…
- backends of this type
- could not query backend for stacks
AI-assisted analysis of pulumi/pulumi@793f7b2e16 (2026-08-31).
Data as JSON: /api/errors/65e73099c0164fec.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/cmd/pulumi/org/org_member_edit.go:156
return out
}
// defaultOrgMemberEditClientFactory is the production wiring: resolve the
// cloud backend, pick the effective organization, and hand back the
// underlying *client.Client.
func defaultOrgMemberEditClientFactory(
ctx context.Context, orgFlag string,
) (orgMemberEditClient, string, error) {
ws := pkgWorkspace.Instance
opts := display.Options{Color: cmdutil.GetGlobalColorization()}
be, err := cmdBackend.CurrentBackend(ctx, ws, cmdBackend.DefaultLoginManager, nil, opts)
if err != nil {
return nil, "", err
}
cloudBackend, ok := be.(httpstate.Backend)
if !ok {
return nil, "", errors.New(
"editing an organization member requires the Pulumi Cloud backend; run `pulumi login`")
}
userName, orgs, _, err := cloudBackend.CurrentUser()
if err != nil {
return nil, "", err
}
org := orgFlag
if org == "" {
defaultOrg, err := cloudBackend.GetDefaultOrg(ctx)
if err != nil {
return nil, "", err
}
org = defaultOrg
}
if org == "" {
org = userNameView on GitHub (pinned to 793f7b2e16)