添加未授权的用户身份
dfx identity whoamidfx identity new bob_standardCreating identity: "bob_standard".
Created identity: "bob_standard".BOB_ID=$(dfx --identity bob_standard canister --no-wallet call access_hello callerPrincipal | sed 's/[\\(\\)]//g')dfx --identity bob_standard canister --no-wallet call access_hello assign_role "($BOB_ID, opt variant{authorized})"dfx --identity default canister --no-wallet call access_hello assign_role "($BOB_ID, opt variant{owner})"Last updated
Was this helpful?