添加授权用户身份
dfx identity new alice_authCreating identity: "alice_auth".
Created identity: "alice_auth".dfx identity use alice_authALICE_ID=$(dfx canister --no-wallet call access_hello callerPrincipal | sed 's/[\\(\\)]//g')echo $ALICE_IDprincipal "b5quc-npdph-l6qp4-kur4u-oxljq-7uddl-vfdo6-x2uo5-6y4a6-4pt6v-7qe"dfx --identity ic_admin canister --no-wallet call access_hello assign_role "($ALICE_ID, opt variant{authorized})"Last updated
Was this helpful?