Delete mobile accounts automatically

Enable this group policy to delete mobile account and its local home folder automatically after a period of inactivity.

When a user enables a mobile account, macOS usually creates a local home folder on the computer he or she is using. If that user enables mobile accounts on several computers, each of those computers has a local home folder for the user. If the user doesn't use those computers, the local home folders are unused and waste disk space.

If this policy is enabled, the mobile account and its local home folder are deleted after a period of inactivity.

You can also set an expiration period of 0 to delete the mobile account and its local home folder as soon as possible, i.e after the user logs out.

Expiry settings do not affect external accounts. An external account is a mobile account where the local home folder is stored on an external drive, allowing the user to access his or her account on any computer.

Once enabled, this group policy takes effect when users log out and back in.

Supported on:

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\MacMCX\Mobility\1012
Value NameenableAccountExpiry
Value TypeREG_SZ
Enabled Value1
Disabled Value0

Delete mobile accounts at specified time after user's next login:

Time:

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\MacMCX\Mobility\1012
Value Nameexpirytime
Value TypeREG_DWORD
Default Value5
Min Value0
Max Value3550
Time Unit:


  1. Hours
    Registry HiveHKEY_CURRENT_USER
    Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\MacMCX\Mobility\1012
    Value Nameexpiryfactor
    Value TypeREG_SZ
    Value3600
  2. Days
    Registry HiveHKEY_CURRENT_USER
    Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\MacMCX\Mobility\1012
    Value Nameexpiryfactor
    Value TypeREG_SZ
    Value86400
  3. Weeks
    Registry HiveHKEY_CURRENT_USER
    Registry PathSoftware\Policies\Centrify\CentrifyDC\Settings\MacMCX\Mobility\1012
    Value Nameexpiryfactor
    Value TypeREG_SZ
    Value604800


centrify_mac_settings.admx

Administrative Templates (Computers)

Administrative Templates (Users)