Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion internal/pat/chmod.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ scope 格式: <product>.<entity>:<permission>
grantType 规则:
once 一次性,执行一次后自动失效
session 当前会话有效(默认),需要 --session-id
permanent 永久有效`,
permanent 永久有效

批量授权:
产品线批量授权推荐使用 --recommend --product <productCode[,productCode]>。
--products / --domain / --domains 保持兼容;裸 --recommend 保持可用,
但会按推荐集合规划,可能跨产品。`,
Args: func(cmd *cobra.Command, args []string) error {
productCodes := collectChmodProductCodes(productFlags, productsFlag, domainFlags, domainsFlag)
if len(args) > 0 || recommend || len(productCodes) > 0 {
Expand All @@ -200,6 +205,7 @@ grantType 规则:
Example: ` dws pat chmod aitable.record:read --grant-type session --session-id session-xxx
dws pat chmod chat.message:list --grant-type once
dws pat chmod aitable.record:read aitable.record:write --grant-type permanent
dws pat chmod --recommend --product minutes --grant-type permanent --dry-run
dws pat chmod --products calendar,aitable --grant-type session --session-id session-xxx
dws pat chmod --recommend --grant-type session --session-id session-xxx`,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down
Loading