# metalcloud-cli user permissions-update Update permissions for a specific user ## Synopsis Update the permissions configuration for a specific user account. This command allows modifying user permissions including resource access levels and operational capabilities. Permissions changes take effect immediately and control what resources the user can access and what operations they can perform. Arguments: user_id The numeric ID of the user whose permissions to update Required Flags: --config-source Source of user permissions configuration (JSON file path or 'pipe') Configuration File Format (JSON): { "permissions": [ { "resourceType": "infrastructure", "resourceId": "123", "permissionLevel": "read" }, { "resourceType": "account", "resourceId": "456", "permissionLevel": "write" } ] } Examples: metalcloud-cli user permissions-update 12345 --config-source permissions.json echo '{"permissions": [{"resourceType": "infrastructure", "resourceId": "123", "permissionLevel": "read"}]}' | metalcloud-cli user permissions-update 12345 --config-source pipe ``` metalcloud-cli user permissions-update user_id [flags] ``` ### Options ``` --config-source string Source of the user permissions configuration. Can be 'pipe' or path to a JSON file. -h, --help help for permissions-update ``` ### Options inherited from parent commands ``` -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") ``` ### SEE ALSO * [metalcloud-cli user](/content/configuration/cli/metalcloud-cli_user.md) - Manage user accounts and their properties #### Auto generated by spf13/cobra on 11-Aug-2025