Dela via


UserManager.DisallowRemoveUser Field

Definition

When set on the admin user this specifies if the user can remove users.

[Android.Runtime.Register("DISALLOW_REMOVE_USER")]
public const string DisallowRemoveUser;
[<Android.Runtime.Register("DISALLOW_REMOVE_USER")>]
val mutable DisallowRemoveUser : string

Field Value

Attributes

Remarks

When set on the admin user this specifies if the user can remove users. When set on a non-admin secondary user, this specifies if the user can remove itself. This restriction has no effect on managed profiles. The default value is false.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_USERS can set this restriction using the DevicePolicyManager APIs mentioned below.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_REMOVE_USER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also