为身份分配角色
dfx identity use defaultdfx canister call access_hello assign_role '((principal "c5wa6-3irl7-tuxuo-4vtyw-xsnhw-rv2a6-vcmdz-bzkca-vejmd-327zo-wae"),opt variant{admin})'dfx --identity ic_admin canister --no-wallet call access_hello my_role(opt variant { admin })dfx --identity ic_admin canister --no-wallet call access_hello greet "Internet Computer Admin"(
"Hello, Internet Computer Admin. You have a role with administrative privileges.",
)最后更新于