UserManager.DisallowGrantAdmin Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Restricts a user's ability to possess or grant admin privileges.
[Android.Runtime.Register("DISALLOW_GRANT_ADMIN", ApiSince=34)]
public const string DisallowGrantAdmin;
[<Android.Runtime.Register("DISALLOW_GRANT_ADMIN", ApiSince=34)>]
val mutable DisallowGrantAdmin : string
Field Value
- Attributes
Remarks
Restricts a user's ability to possess or grant admin privileges.
When set to true
, this prevents the user from: <ul> <li>Becoming an admin</li> <li>Giving other users admin privileges</li> </ul>
This restriction is only effective in environments where multiple admins are allowed.
Key for user restrictions. Type: Boolean. Default: false
.
Java documentation for android.os.UserManager.DISALLOW_GRANT_ADMIN
.
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.