mc admin user 的 policy 子命令用来以 JSON 格式导出用户策略信息,语法如下:
C:\>mc admin user policy -h NAME: mc admin user policy - export user policies in JSON format USAGE: mc admin user policy TARGET USERNAME FLAGS: --config-dir value, -C value path to configuration folder (default: "C:\\Users\\Administrator\\mc") --quiet, -q disable progress bar display --no-color disable color theme --json enable JSON lines formatted output --debug enable debug output --insecure disable SSL certificate verification --help, -h show help
(1)以JSON格式显示用户“foobar”的策略文档。
D:\server\minio>mc admin user policy local foobar { "Version": "", "Statement": null }