DevicePolicyManager.SetOrganizationId(String) Method

Definition

Sets the Enterprise ID for the work profile or managed device.

[Android.Runtime.Register("setOrganizationId", "(Ljava/lang/String;)V", "GetSetOrganizationId_Ljava_lang_String_Handler", ApiSince=31)]
public virtual void SetOrganizationId (string enterpriseId);
[<Android.Runtime.Register("setOrganizationId", "(Ljava/lang/String;)V", "GetSetOrganizationId_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member SetOrganizationId : string -> unit
override this.SetOrganizationId : string -> unit

Parameters

enterpriseId
String

An identifier of the organization this work profile or device is enrolled into.

Attributes

Remarks

Sets the Enterprise ID for the work profile or managed device. This is a requirement for generating an enrollment-specific ID for the device, see #getEnrollmentSpecificId().

It is recommended that the Enterprise ID is at least 6 characters long, and no more than 64 characters.

Java documentation for android.app.admin.DevicePolicyManager.setOrganizationId(java.lang.String).

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