# Need to Supervised and UNSupervised Programmatically In Swift

**URL:** <https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590>\
**Category:** iOS\
**Created:** [February 25, 2020, 4:30pm UTC](https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590 "2020-02-25T16:30:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharti1990](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bharti1990/32/81494_2.png) [@bharti1990](https://forums.kodeco.com/u/bharti1990)\
**Post date:** [February 25, 2020, 4:30pm UTC](https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590/1 "2020-02-25T16:30:45Z")

</div>

I need to Supervised and UNSupervised my device Programmatically In Swift.

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [February 27, 2020, 7:49am UTC](https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590/2 "2020-02-27T07:49:54Z")

</div>

@bharti1990 Thanks very much for your question!

I looked into this, and to the best of my knowledge, it is not possible to alter your device into Supervised/UnSupervised mode programmatically. These are controls that you typically would implement using a Mobile Device Management (MDM) provider or using the Apple Configurator macOS app.

Here is a [link](https://support.apple.com/en-ca/guide/mdm/mdm54960f92a/web) that gives you more information on it.

I hope this helps!

All the best. 🙂

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [March 15, 2020, 6:45am UTC](https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590/3 "2020-03-15T06:45:01Z")

</div>

Hi @bharti1990,  
The supervised mode is basically called your Managed Device and that is achieved via setting a Provisioning Profile on the device that allows or disallows certain features.

In enterprises this profile is distributed from a MDM solution via the server and if you want to simply manage a device or a smaller number manually, you can use the Apple configurator and set the restrictions, etc.

There is another option to set the device to a managed setting for children as outlined at [Use parental controls on your child's iPhone, iPad, and iPod touch - Apple Support](https://support.apple.com/en-us/HT201304)

Lastly, another option to restrict a device is the Guided Access mode.

Setting any of this programatically using Swift or any other language is not possible.

cheers,

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [August 10, 2020, 8:34am UTC](https://forums.kodeco.com/t/need-to-supervised-and-unsupervised-programmatically-in-swift/99590/4 "2020-08-10T08:34:22Z")

</div>

Closed on August 10, 2020, 8:34am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
