# Get controllers without async

**URL:** <https://forum.dfinity.org/t/get-controllers-without-async/16719>\
**Category:** Rust\
**Created:** [November 20, 2022, 12:14pm UTC](https://forum.dfinity.org/t/get-controllers-without-async/16719 "2022-11-20T12:14:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GLdev](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GLdev](https://forum.dfinity.org/u/GLdev)\
**Post date:** [November 21, 2022, 10:58am UTC](https://forum.dfinity.org/t/get-controllers-without-async/16719/4 "2022-11-21T10:58:39Z")

</div>

Are you spawning the new canisters from somewhere you control? If so, you can include a list of controllers at spawn time, and avoid the async call. More info on this [here](https://forum.dfinity.org/t/getting-a-canisters-controllers-from-rust/11873).

edit: This approach only works if the flow of adding new controllers is handled by the canister itself after init, and it will miss controllers added by dfx. It is a pitty that there isn’t a canister-side API to get it’s own controllers.

---

_[View the full topic](https://forum.dfinity.org/t/get-controllers-without-async/16719)._
