Mattermost, Inc.

[SOLVED] Channel modify to private give me "Error: Username is required"

Summary

Channel modify to private give me “Error: Username is required”

Steps to reproduce

Mattermost E10 4.9.0, multi team, ldap login + email
Debian 8.6, pgsql database

./platform channel modify Office:TOR-PROJ-Paymi --private
./platform channel modify Office:#TOR-PROJ-Paymi --private
im not sure if the channel need the # so i try both with same result.

Expected behavior

changing the public channel to private

Observed behavior

./platform channel modify Office:TOR-PROJ-Paymi --private
sql-trace:14:19:23.972124 create table if not exists “teams” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “deleteat” bigint, “displayname” varchar(64), “name” varchar(64) unique, “description” varchar(255), “email” varchar(128), “type” text, “companyname” varchar(64), “alloweddomains” varchar(500), “inviteid” varchar(32), “allowopeninvite” boolean, “lastteamiconupdate” bigint) ; [] (569.182µs)
sql-trace:14:19:23.972529 create table if not exists “teammembers” (“teamid” varchar(26) not null, “userid” varchar(26) not null, “roles” varchar(64), “deleteat” bigint, primary key (“teamid”, “userid”)) ; [] (372.092µs)
sql-trace:14:19:23.972940 create table if not exists “channels” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “deleteat” bigint, “teamid” varchar(26), “type” varchar(1), “displayname” varchar(64), “name” varchar(64), “header” varchar(1024), “purpose” varchar(250), “lastpostat” bigint, “totalmsgcount” bigint, “extraupdateat” bigint, “creatorid” varchar(26), unique (“name”, “teamid”), unique (“name”, “teamid”)) ; [] (364.611µs)
sql-trace:14:19:23.973304 create table if not exists “channelmembers” (“channelid” varchar(26) not null, “userid” varchar(26) not null, “roles” varchar(64), “lastviewedat” bigint, “msgcount” bigint, “mentioncount” bigint, “notifyprops” varchar(2000), “lastupdateat” bigint, primary key (“channelid”, “userid”)) ; [] (333.552µs)
sql-trace:14:19:23.973730 create table if not exists “posts” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “editat” bigint, “deleteat” bigint, “ispinned” boolean, “userid” varchar(26), “channelid” varchar(26), “rootid” varchar(26), “parentid” varchar(26), “originalid” varchar(26), “message” varchar(65535), “type” varchar(26), “props” varchar(8000), “hashtags” varchar(1000), “filenames” varchar(4000), “fileids” varchar(150), “hasreactions” boolean) ; [] (376.769µs)
sql-trace:14:19:23.974169 create table if not exists “users” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “deleteat” bigint, “username” varchar(64) unique, “password” varchar(128), “authdata” varchar(128) unique, “authservice” varchar(32), “email” varchar(128) unique, “emailverified” boolean, “nickname” varchar(64), “firstname” varchar(64), “lastname” varchar(64), “position” varchar(128), “roles” varchar(256), “allowmarketing” boolean, “props” varchar(4000), “notifyprops” varchar(2000), “lastpasswordupdate” bigint, “lastpictureupdate” bigint, “failedattempts” integer, “locale” varchar(5), “timezone” varchar(256), “mfaactive” boolean, “mfasecret” varchar(128)) ; [] (394.256µs)
sql-trace:14:19:23.974509 create table if not exists “audits” (“id” varchar(26) not null primary key, “createat” bigint, “userid” varchar(26), “action” varchar(512), “extrainfo” varchar(1024), “ipaddress” varchar(64), “sessionid” varchar(26)) ; [] (302.908µs)
sql-trace:14:19:23.974908 create table if not exists “clusterdiscovery” (“id” varchar(26) not null primary key, “type” varchar(64), “clustername” varchar(64), “hostname” varchar(512), “gossipport” integer, “port” integer, “createat” bigint, “lastpingat” bigint) ; [] (376.258µs)
sql-trace:14:19:23.975229 create table if not exists “compliances” (“id” varchar(26) not null primary key, “createat” bigint, “userid” varchar(26), “status” varchar(64), “count” integer, “desc” varchar(512), “type” varchar(64), “startat” bigint, “endat” bigint, “keywords” varchar(512), “emails” varchar(1024)) ; [] (296.136µs)
sql-trace:14:19:23.975650 create table if not exists “sessions” (“id” varchar(26) not null primary key, “token” varchar(26), “createat” bigint, “expiresat” bigint, “lastactivityat” bigint, “userid” varchar(26), “deviceid” varchar(512), “roles” varchar(64), “isoauth” boolean, “props” varchar(1000)) ; [] (389.422µs)
sql-trace:14:19:23.976070 create table if not exists “oauthapps” (“id” varchar(26) not null primary key, “creatorid” varchar(26), “createat” bigint, “updateat” bigint, “clientsecret” varchar(128), “name” varchar(64), “description” varchar(512), “iconurl” varchar(512), “callbackurls” varchar(1024), “homepage” varchar(256), “istrusted” boolean) ; [] (378.928µs)
sql-trace:14:19:23.976420 create table if not exists “oauthauthdata” (“clientid” varchar(26), “userid” varchar(26), “code” varchar(128) not null primary key, “expiresin” integer, “createat” bigint, “redirecturi” varchar(256), “state” varchar(1024), “scope” varchar(128)) ; [] (306.359µs)
sql-trace:14:19:23.976875 create table if not exists “oauthaccessdata” (“clientid” varchar(26), “userid” varchar(26), “token” varchar(26) not null primary key, “refreshtoken” varchar(26), “redirecturi” varchar(256), “expiresat” bigint, “scope” varchar(128), unique (“clientid”, “userid”), unique (“clientid”, “userid”)) ; [] (427.752µs)
sql-trace:14:19:23.977282 create table if not exists “systems” (“name” varchar(64) not null primary key, “value” varchar(1024)) ; [] (389.793µs)
sql-trace:14:19:23.977660 create table if not exists “incomingwebhooks” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “deleteat” bigint, “userid” varchar(26), “channelid” varchar(26), “teamid” varchar(26), “displayname” varchar(64), “description” varchar(128), “username” text, “iconurl” text) ; [] (349.744µs)
sql-trace:14:19:23.978034 create table if not exists “outgoingwebhooks” (“id” varchar(26) not null primary key, “token” varchar(26), “createat” bigint, “updateat” bigint, “deleteat” bigint, “creatorid” varchar(26), “channelid” varchar(26), “teamid” varchar(26), “triggerwords” varchar(1024), “triggerwhen” integer, “callbackurls” varchar(1024), “displayname” varchar(64), “description” varchar(128), “contenttype” varchar(128)) ; [] (335.989µs)
sql-trace:14:19:23.978379 create table if not exists “commands” (“id” varchar(26) not null primary key, “token” varchar(26), “createat” bigint, “updateat” bigint, “deleteat” bigint, “creatorid” varchar(26), “teamid” varchar(26), “trigger” varchar(128), “method” varchar(1), “username” varchar(64), “iconurl” varchar(1024), “autocomplete” boolean, “autocompletedesc” varchar(1024), “autocompletehint” varchar(1024), “displayname” varchar(64), “description” varchar(128), “url” varchar(1024)) ; [] (310.911µs)
sql-trace:14:19:23.978754 create table if not exists “commandwebhooks” (“id” varchar(26) not null primary key, “createat” bigint, “commandid” varchar(26), “userid” varchar(26), “channelid” varchar(26), “rootid” varchar(26), “parentid” varchar(26), “usecount” integer) ; [] (349.246µs)
sql-trace:14:19:23.979136 create table if not exists “preferences” (“userid” varchar(26) not null, “category” varchar(32) not null, “name” varchar(32) not null, “value” varchar(2000), primary key (“userid”, “category”, “name”)) ; [] (357.157µs)
sql-trace:14:19:23.979463 create table if not exists “licenses” (“id” varchar(26) not null primary key, “createat” bigint, “bytes” varchar(10000)) ; [] (305.138µs)
sql-trace:14:19:23.979814 create table if not exists “tokens” (“token” varchar(64) not null primary key, “createat” bigint, “type” varchar(64), “extra” varchar(128)) ; [] (331.454µs)
sql-trace:14:19:23.980234 create table if not exists “emoji” (“id” varchar(26) not null primary key, “createat” bigint, “updateat” bigint, “deleteat” bigint, “creatorid” varchar(26), “name” varchar(64), unique (“name”, “deleteat”), unique (“name”, “deleteat”)) ; [] (386.981µs)
sql-trace:14:19:23.980567 create table if not exists “status” (“userid” varchar(26) not null primary key, “status” varchar(32), “manual” boolean, “lastactivityat” bigint) ; [] (311.852µs)
sql-trace:14:19:23.980934 create table if not exists “fileinfo” (“id” varchar(26) not null primary key, “creatorid” varchar(26), “postid” varchar(26), “createat” bigint, “updateat” bigint, “deleteat” bigint, “path” varchar(512), “thumbnailpath” varchar(512), “previewpath” varchar(512), “name” varchar(256), “extension” varchar(64), “size” bigint, “mimetype” varchar(256), “width” integer, “height” integer, “haspreviewimage” boolean) ; [] (324.199µs)
sql-trace:14:19:23.981398 create table if not exists “jobs” (“id” varchar(26) not null primary key, “type” varchar(32), “priority” bigint, “createat” bigint, “startat” bigint, “lastactivityat” bigint, “status” varchar(32), “progress” bigint, “data” varchar(1024)) ; [] (420.459µs)
sql-trace:14:19:23.981811 create table if not exists “useraccesstokens” (“id” varchar(26) not null primary key, “token” varchar(26) unique, “userid” varchar(26), “description” varchar(512), “isactive” boolean) ; [] (373.206µs)
sql-trace:14:19:23.982147 create table if not exists “channelmemberhistory” (“channelid” varchar(26) not null, “userid” varchar(26) not null, “jointime” bigint not null, “leavetime” bigint, primary key (“channelid”, “userid”, “jointime”)) ; [] (319.988µs)
sql-trace:14:19:23.982517 create table if not exists “pluginkeyvaluestore” (“pluginid” varchar(190) not null, “pkey” varchar(50) not null, “pvalue” bytea, primary key (“pluginid”, “pkey”)) ; [] (348.574µs)
sql-trace:14:19:23.982881 create table if not exists “reactions” (“userid” varchar(26) not null, “postid” varchar(26) not null, “emojiname” varchar(64) not null, “createat” bigint, primary key (“userid”, “postid”, “emojiname”)) ; [] (338.039µs)
sql-trace:14:19:23.983571 create table if not exists “roles” (“id” varchar(26) not null primary key, “name” varchar(64) unique, “displayname” varchar(128), “description” varchar(1024), “createat” bigint, “updateat” bigint, “deleteat” bigint, “permissions” varchar(4096), “schememanaged” boolean) ; [] (665.654µs)
sql-trace:14:19:23.984875 SELECT Value FROM Systems WHERE Name=‘Version’ [] (1.276552ms)
sql-trace:14:19:23.985313 SELECT Value FROM Systems WHERE Name=‘Version’ [] (401.847µs)
sql-trace:14:19:23.985670 SELECT Value FROM Systems WHERE Name=‘Version’ [] (331.515µs)
sql-trace:14:19:23.986010 SELECT Value FROM Systems WHERE Name=‘Version’ [] (293.846µs)
sql-trace:14:19:23.986318 SELECT Value FROM Systems WHERE Name=‘Version’ [] (287.503µs)
sql-trace:14:19:23.986624 SELECT Value FROM Systems WHERE Name=‘Version’ [] (286.215µs)
sql-trace:14:19:23.986939 SELECT Value FROM Systems WHERE Name=‘Version’ [] (297.762µs)
sql-trace:14:19:23.987250 SELECT Value FROM Systems WHERE Name=‘Version’ [] (290.702µs)
sql-trace:14:19:23.987562 SELECT Value FROM Systems WHERE Name=‘Version’ [] (291.237µs)
sql-trace:14:19:23.988062 SELECT Value FROM Systems WHERE Name=‘Version’ [] (480.435µs)
sql-trace:14:19:23.988568 SELECT Value FROM Systems WHERE Name=‘Version’ [] (486.215µs)
sql-trace:14:19:23.989043 SELECT Value FROM Systems WHERE Name=‘Version’ [] (455.359µs)
sql-trace:14:19:23.989572 SELECT Value FROM Systems WHERE Name=‘Version’ [] (505.436µs)
sql-trace:14:19:23.990003 SELECT Value FROM Systems WHERE Name=‘Version’ [] (409.9µs)
sql-trace:14:19:23.990422 SELECT Value FROM Systems WHERE Name=‘Version’ [] (393.472µs)
sql-trace:14:19:23.990821 SELECT Value FROM Systems WHERE Name=‘Version’ [] (378.003µs)
sql-trace:14:19:23.991237 SELECT Value FROM Systems WHERE Name=‘Version’ [] (389.826µs)
sql-trace:14:19:23.991624 SELECT Value FROM Systems WHERE Name=‘Version’ [] (365.056µs)
sql-trace:14:19:23.991999 SELECT Value FROM Systems WHERE Name=‘Version’ [] (354.688µs)
sql-trace:14:19:23.992386 SELECT Value FROM Systems WHERE Name=‘Version’ [] (366.988µs)
sql-trace:14:19:23.992771 SELECT Value FROM Systems WHERE Name=‘Version’ [] (363.164µs)
sql-trace:14:19:23.993184 SELECT Value FROM Systems WHERE Name=‘Version’ [] (389.905µs)
sql-trace:14:19:23.993605 SELECT Value FROM Systems WHERE Name=‘Version’ [] (398.544µs)
sql-trace:14:19:23.994044 SELECT Value FROM Systems WHERE Name=‘Version’ [] (415.557µs)
sql-trace:14:19:23.994492 SELECT Value FROM Systems WHERE Name=‘Version’ [] (414.635µs)
sql-trace:14:19:23.995352 SELECT $1::regclass [1:“idx_teams_name”] (823.684µs)
sql-trace:14:19:23.996150 SELECT $1::regclass [1:“idx_teams_description”] (770.087µs)
sql-trace:14:19:23.996850 SELECT $1::regclass [1:“idx_teams_invite_id”] (667.983µs)
sql-trace:14:19:23.997492 SELECT $1::regclass [1:“idx_teams_update_at”] (615.25µs)
sql-trace:14:19:23.998121 SELECT $1::regclass [1:“idx_teams_create_at”] (604.523µs)
sql-trace:14:19:23.998809 SELECT $1::regclass [1:“idx_teams_delete_at”] (660.629µs)
sql-trace:14:19:23.999453 SELECT $1::regclass [1:“idx_teammembers_team_id”] (619.331µs)
sql-trace:14:19:24.000065 SELECT $1::regclass [1:“idx_teammembers_user_id”] (592.276µs)
sql-trace:14:19:24.000763 SELECT $1::regclass [1:“idx_teammembers_delete_at”] (677.029µs)
sql-trace:14:19:24.001429 SELECT $1::regclass [1:“idx_channels_team_id”] (642.373µs)
sql-trace:14:19:24.002150 SELECT $1::regclass [1:“idx_channels_name”] (670.767µs)
sql-trace:14:19:24.002799 SELECT $1::regclass [1:“idx_channels_update_at”] (616.621µs)
sql-trace:14:19:24.003566 SELECT $1::regclass [1:“idx_channels_create_at”] (744.958µs)
sql-trace:14:19:24.004246 SELECT $1::regclass [1:“idx_channels_delete_at”] (658.096µs)
sql-trace:14:19:24.004894 SELECT $1::regclass [1:“idx_channels_name_lower”] (622.045µs)
sql-trace:14:19:24.005587 SELECT $1::regclass [1:“idx_channels_displayname_lower”] (671.585µs)
sql-trace:14:19:24.006274 SELECT $1::regclass [1:“idx_channelmembers_channel_id”] (665.741µs)
sql-trace:14:19:24.006952 SELECT $1::regclass [1:“idx_channelmembers_user_id”] (656.706µs)
sql-trace:14:19:24.007637 SELECT $1::regclass [1:“idx_channels_txt”] (660.283µs)
sql-trace:14:19:24.008298 SELECT $1::regclass [1:“idx_posts_update_at”] (640.983µs)
sql-trace:14:19:24.009077 SELECT $1::regclass [1:“idx_posts_create_at”] (757.585µs)
sql-trace:14:19:24.009757 SELECT $1::regclass [1:“idx_posts_delete_at”] (658.581µs)
sql-trace:14:19:24.010421 SELECT $1::regclass [1:“idx_posts_channel_id”] (642.286µs)
sql-trace:14:19:24.011071 SELECT $1::regclass [1:“idx_posts_root_id”] (628.657µs)
sql-trace:14:19:24.011708 SELECT $1::regclass [1:“idx_posts_user_id”] (610.55µs)
sql-trace:14:19:24.012366 SELECT $1::regclass [1:“idx_posts_is_pinned”] (623.464µs)
sql-trace:14:19:24.013039 SELECT $1::regclass [1:“idx_posts_channel_id_update_at”] (645.239µs)
sql-trace:14:19:24.013714 SELECT $1::regclass [1:“idx_posts_channel_id_delete_at_create_at”] (650.798µs)
sql-trace:14:19:24.014362 SELECT $1::regclass [1:“idx_posts_message_txt”] (623.549µs)
sql-trace:14:19:24.015009 SELECT $1::regclass [1:“idx_posts_hashtags_txt”] (625.79µs)
sql-trace:14:19:24.015666 SELECT $1::regclass [1:“idx_users_email”] (636.666µs)
sql-trace:14:19:24.016253 SELECT $1::regclass [1:“idx_users_update_at”] (563.707µs)
sql-trace:14:19:24.016891 SELECT $1::regclass [1:“idx_users_create_at”] (613.463µs)
sql-trace:14:19:24.017460 SELECT $1::regclass [1:“idx_users_delete_at”] (546.36µs)
sql-trace:14:19:24.018032 SELECT $1::regclass [1:“idx_users_email_lower”] (550.876µs)
sql-trace:14:19:24.018609 SELECT $1::regclass [1:“idx_users_username_lower”] (557.238µs)
sql-trace:14:19:24.019218 SELECT $1::regclass [1:“idx_users_nickname_lower”] (589.772µs)
sql-trace:14:19:24.019834 SELECT $1::regclass [1:“idx_users_firstname_lower”] (593.058µs)
sql-trace:14:19:24.020505 SELECT $1::regclass [1:“idx_users_lastname_lower”] (651.509µs)
sql-trace:14:19:24.021086 SELECT $1::regclass [1:“idx_users_all_txt”] (560.046µs)
sql-trace:14:19:24.021713 SELECT $1::regclass [1:“idx_users_all_no_full_name_txt”] (610.139µs)
sql-trace:14:19:24.022307 SELECT $1::regclass [1:“idx_users_names_txt”] (576.564µs)
sql-trace:14:19:24.022894 SELECT $1::regclass [1:“idx_users_names_no_full_name_txt”] (563.228µs)
sql-trace:14:19:24.023553 SELECT $1::regclass [1:“idx_audits_user_id”] (640.492µs)
sql-trace:14:19:24.024171 SELECT $1::regclass [1:“idx_sessions_user_id”] (584.814µs)
sql-trace:14:19:24.024804 SELECT $1::regclass [1:“idx_sessions_token”] (593.829µs)
sql-trace:14:19:24.025398 SELECT $1::regclass [1:“idx_sessions_expires_at”] (557.674µs)
sql-trace:14:19:24.025980 SELECT $1::regclass [1:“idx_sessions_create_at”] (557.399µs)
sql-trace:14:19:24.026568 SELECT $1::regclass [1:“idx_sessions_last_activity_at”] (564.674µs)
sql-trace:14:19:24.027200 SELECT $1::regclass [1:“idx_oauthapps_creator_id”] (603.542µs)
sql-trace:14:19:24.027765 SELECT $1::regclass [1:“idx_oauthaccessdata_client_id”] (543.457µs)
sql-trace:14:19:24.028297 SELECT $1::regclass [1:“idx_oauthaccessdata_user_id”] (510.967µs)
sql-trace:14:19:24.028890 SELECT $1::regclass [1:“idx_oauthaccessdata_refresh_token”] (573.729µs)
sql-trace:14:19:24.029431 SELECT $1::regclass [1:“idx_oauthauthdata_client_id”] (517.235µs)
sql-trace:14:19:24.029974 SELECT $1::regclass [1:“idx_incoming_webhook_user_id”] (521.966µs)
sql-trace:14:19:24.030513 SELECT $1::regclass [1:“idx_incoming_webhook_team_id”] (517.781µs)
sql-trace:14:19:24.031091 SELECT $1::regclass [1:“idx_outgoing_webhook_team_id”] (550.291µs)
sql-trace:14:19:24.031632 SELECT $1::regclass [1:“idx_incoming_webhook_update_at”] (520.712µs)
sql-trace:14:19:24.032160 SELECT $1::regclass [1:“idx_incoming_webhook_create_at”] (506.659µs)
sql-trace:14:19:24.032699 SELECT $1::regclass [1:“idx_incoming_webhook_delete_at”] (519.802µs)
sql-trace:14:19:24.033224 SELECT $1::regclass [1:“idx_outgoing_webhook_update_at”] (505.192µs)
sql-trace:14:19:24.033800 SELECT $1::regclass [1:“idx_outgoing_webhook_create_at”] (556.715µs)
sql-trace:14:19:24.034396 SELECT $1::regclass [1:“idx_outgoing_webhook_delete_at”] (575.988µs)
sql-trace:14:19:24.034924 SELECT $1::regclass [1:“idx_command_team_id”] (508.168µs)
sql-trace:14:19:24.035463 SELECT $1::regclass [1:“idx_command_update_at”] (519.101µs)
sql-trace:14:19:24.036025 SELECT $1::regclass [1:“idx_command_create_at”] (538.01µs)
sql-trace:14:19:24.036561 SELECT $1::regclass [1:“idx_command_delete_at”] (512.04µs)
sql-trace:14:19:24.037148 SELECT $1::regclass [1:“idx_command_webhook_create_at”] (566.482µs)
sql-trace:14:19:24.037696 SELECT $1::regclass [1:“idx_preferences_user_id”] (525.14µs)
sql-trace:14:19:24.038298 SELECT $1::regclass [1:“idx_preferences_category”] (581.368µs)
sql-trace:14:19:24.038940 SELECT $1::regclass [1:“idx_preferences_name”] (606.243µs)
sql-trace:14:19:24.039542 SELECT $1::regclass [1:“idx_emoji_update_at”] (568.354µs)
sql-trace:14:19:24.040371 SELECT $1::regclass [1:“idx_emoji_create_at”] (806.464µs)
sql-trace:14:19:24.041067 SELECT $1::regclass [1:“idx_emoji_delete_at”] (675.376µs)
sql-trace:14:19:24.041751 SELECT $1::regclass [1:“idx_emoji_name”] (662.55µs)
sql-trace:14:19:24.042417 SELECT $1::regclass [1:“idx_status_user_id”] (643.717µs)
sql-trace:14:19:24.043082 SELECT $1::regclass [1:“idx_status_status”] (641.368µs)
sql-trace:14:19:24.043749 SELECT $1::regclass [1:“idx_fileinfo_update_at”] (645.227µs)
sql-trace:14:19:24.044432 SELECT $1::regclass [1:“idx_fileinfo_create_at”] (661.467µs)
sql-trace:14:19:24.045114 SELECT $1::regclass [1:“idx_fileinfo_delete_at”] (662.223µs)
sql-trace:14:19:24.045783 SELECT $1::regclass [1:“idx_fileinfo_postid_at”] (648.131µs)
sql-trace:14:19:24.046462 SELECT $1::regclass [1:“idx_jobs_type”] (658.478µs)
sql-trace:14:19:24.047108 SELECT $1::regclass [1:“idx_user_access_tokens_token”] (624.104µs)
sql-trace:14:19:24.047760 SELECT $1::regclass [1:“idx_user_access_tokens_user_id”] (631.668µs)
sql-trace:14:19:24.049979 DELETE
FROM Preferences
WHERE
Category = :Category
AND Value = :Value
AND Name LIKE ‘feature_enabled_%’ [1:map[Category:advanced_settings Value:false]] (2.19138ms)
sql-trace:14:19:24.051568 SELECT * FROM Systems WHERE Name = $1 [1:“AsymmetricSigningKey”] (837.129µs)
sql-trace:14:19:24.059404 SELECT * FROM Systems [] (1.55581ms)
sql-trace:14:19:24.060431 select “id”,“createat”,“bytes” from “licenses” where “id”=$1; [1:“cwdjbr4qjinj5f54eeadj1d8je”] (867.594µs)
sql-trace:14:19:24.061645 SELECT * FROM Systems WHERE Name = $1 [1:“AdvancedPermissionsMigrationComplete”] (617.981µs)
Error: Username is required
Usage:
platform channel modify [channel] [flags]

Examples:
channel modify myteam:mychannel --private

Flags:
-h, --help help for modify
–private Convert the channel to a private channel
–public Convert the channel to a public channel
–username string Required. Username who changes the channel privacy.

Global Flags:
-c, --config string Configuration file to use. (default “config.json”)
–disableconfigwatch When set config.json will not be loaded from disk when the file is changed.

LOL forget that. I just realize the --username flag. This is not in the doc

@baudette I just ran into the same issue. Can you share how you managed to make it work? Why do I need --username flag?

edit: ok I didn’t notice the Flags part of your reply. So:

./platform channel modify team:channel --private --username [team admin username]

Do the Mattermost people read this forum? Why is this flag neither in the “Usage” nor in “Examples”, but only in Flags section? Neither it is in the web doc: https://docs.mattermost.com/administration/command-line-tools.html#platform-channel-modify.

1 Like

yes you need to be really careful to see the flags and the only way to see it and by doing the command.

By design when running platform command it should take the superadmin user we created during the installation unless you specify someone else.