# Trouble Setting a Controller for a canister

**URL:** <https://forum.dfinity.org/t/trouble-setting-a-controller-for-a-canister/11557>\
**Category:** Developers\
**Created:** [March 17, 2022, 7:19pm UTC](https://forum.dfinity.org/t/trouble-setting-a-controller-for-a-canister/11557 "2022-03-17T19:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)\
**Post date:** [March 17, 2022, 7:19pm UTC](https://forum.dfinity.org/t/trouble-setting-a-controller-for-a-canister/11557/1 "2022-03-17T19:19:59Z")

</div>

I’m trying to set a principal as a controller for a canister. When I perform this command `dfx wallet --network ic add-controller my-principal` I get this response in the terminal `Added my-principal as a controller`. but when I try to view the canister from the nns.ic0.app UI, I’m getting told that I can’t access the details of the canister because I’m not the controller. I made sure to run this command beforehand `dfx identity --network ic deploy-wallet bs4fi-aaaaa-aaaap-qaabq-cai` and got this result in the terminal `Creating a wallet canister on the ic network. The wallet canister on the "ic" network for user "default" is "bs4fi-aaaaa-aaaap-qaabq-cai"`

Does anyone know why I wouldn’t be able to view the canister details from the UI at this point?

---

<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:** [March 22, 2022, 11:12am UTC](https://forum.dfinity.org/t/trouble-setting-a-controller-for-a-canister/11557/2 "2022-03-22T11:12:26Z")

</div>

Note that there is a distinction between `wallet controller` and `canister controller`.

This thread should clear things up

> [@Wallet upgrade not possible](https://forum.dfinity.org/t/wallet-upgrade-not-possible/11113):
>
> i’m currently trying to upgrade my wallet, but it fails with the following error: ❯ dfx wallet --network ic upgrade The replica returned an HTTP Error: Http Error: status 403 Forbidden, content type "", content: Requested canister rejected the message my current identity is the controller of the wallet ❯ dfx identity --network ic get-principal cbvco-k27pa-...-dayv3-4qe ❯ dfx wallet --network ic controllers cbvco-k27pa-...-dayv3-4qe is this a bug? tagging @diegop bc i don’t know whose expert…

---

<div class="post-metadata">

**Author:** ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)\
**Post date:** [March 23, 2022, 2:01am UTC](https://forum.dfinity.org/t/trouble-setting-a-controller-for-a-canister/11557/3 "2022-03-23T02:01:29Z")

</div>

Thank you. That thread was exactly what I needed.
