# Identity between canister owner and function caller are not equal

**URL:** <https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874>\
**Category:** Language Support\
**Tags:** Motoko\
**Created:** [June 6, 2021, 11:19am UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874 "2021-06-06T11:19:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbolog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rbolog/32/239_2.png) [@rbolog](https://forum.dfinity.org/u/rbolog)\
**Post date:** [June 6, 2021, 11:19am UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874/1 "2021-06-06T11:19:51Z")

</div>

Hi,

I have the following snippet

```auto
shared(msg) actor class Organisations() {

    let canisterOwner = msg.caller;

     public shared(caller) func debugIdentity() : async Text {
        let result = "Caller : " # Principal.toText(caller.caller) # " canister Owner: " # Principal.toText(canisterOwner) # " Caller hash : " # Nat32.toText(Principal.hash(caller.caller)) # " Canister Owner hash : " # Nat32.toText(Principal.hash(canisterOwner)) ;
        return result;
    };
};

```

I deploy using default identity `dfx --identity default deploy`

And call it as `dfx --identity default canister call organisations debugIdentity`

I expect to get the same identity between canister owner and function caller. But there are different.

> (  
> “Caller : **gwa27-fxplx-wxche-go5up-irof3-bpuxh-4wzon-tdkb7-disam-ehhrw-tqe** canister Owner: **rwlgt-iiaaa-aaaaa-aaaaa-cai** Caller hash : 897691542 Canister Owner hash : 2375444897”,  
> )

if I am using command: `dfx identity get-principal`  
I got the caller id **gwa27-fxplx-wxche-go5up-irof3-bpuxh-4wzon-tdkb7-disam-ehhrw-tqe**

I am using dfx 0.7.1

I could not find my mistake.

Thanks for advice’s

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [June 6, 2021, 1:10pm UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874/2 "2021-06-06T13:10:21Z")

</div>

Hey, I’m not sure if `dfx --identity default deploy` stops the proxying through the wallet canister. I’m not on a machine right now but maybe you can check the `dfx deploy --help` command to see if there’s a flag for it?

This is for reference:

> [@Dfx 0.7.1 released with breaking changes](https://forum.dfinity.org/t/dfx-0-7-1-released-with-breaking-changes/4803):
>
> Hey guys, dfx 0.7.1 is now promoted to the latest release. There is a breaking change you should be aware of detailed here: To summarize, in previous releases, dfx canister call would proxy all calls via the cycle wallet by default. This is no longer the case. If a user expects the dfx canister call to proxy via the wallet, the user will have to do dfx canister --wallet=\<id\> call now; this primarily impacts canisters that maintain an internal ACL based on the canister initializer. For example…

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [June 6, 2021, 2:07pm UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874/3 "2021-06-06T14:07:09Z")

</div>

Use some permutation of --no-wallet. Dfx routes requests through a wallet canister unless you use this and things get wonky.

---

<div class="post-metadata">

**Author:** ![rbolog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rbolog/32/239_2.png) [@rbolog](https://forum.dfinity.org/u/rbolog)\
**Post date:** [June 6, 2021, 3:14pm UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874/4 "2021-06-06T15:14:18Z")

</div>

Hi,

Yes, thanks with following command `dfx canister --wallet=$(dfx identity get-wallet) call organisations debugIdentity` I got the same id.

👍

---

<div class="post-metadata">

**Author:** ![rbolog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rbolog/32/239_2.png) [@rbolog](https://forum.dfinity.org/u/rbolog)\
**Post date:** [June 6, 2021, 3:36pm UTC](https://forum.dfinity.org/t/identity-between-canister-owner-and-function-caller-are-not-equal/4874/5 "2021-06-06T15:36:25Z")

</div>

Hi,  
I tried your proposition using command `dfx canister --no-wallet call organisations debugIdentity` but I still have different id’s.

Thanks
