Skip to content

metalcloud-cli infrastructure remove-user

Remove a user’s access from an infrastructure

Remove a user’s access permissions from a specific infrastructure.

This command revokes the specified user’s access to the infrastructure, preventing them from viewing or modifying it. The user is identified by their numeric user ID.

Arguments: infrastructure_id_or_label The ID (numeric) or label (string) of the infrastructure user_id The numeric ID of the user to remove

Examples:

Remove user by infrastructure ID and user ID

Section titled “Remove user by infrastructure ID and user ID”

metalcloud-cli infrastructure remove-user 123 456

metalcloud-cli infrastructure remove-user “web-cluster” 789

metalcloud-cli infrastructure delete-user my-infrastructure 101

metalcloud-cli infrastructure remove-user infrastructure_id_or_label user_id [flags]
-h, --help help for remove-user
-k, --api_key string MetalCloud API key
-c, --config string Config file path
-d, --debug Set to enable debug logging
-e, --endpoint string MetalCloud API endpoint
-f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
-i, --insecure_skip_verify Set to allow insecure transport
-l, --log_file string Log file path
-v, --verbosity string Log level verbosity (default "INFO")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”