createCustomer

Creates a Company object to uniquely identify a company (customer) for zero-touch enrollment. After the method returns successfully, the specified owners (primary_emails) and admins (secondary_emails) can associate their email addresses with a Google Account to access the zero touch portal (for details, see Zero-touch enrollment for IT admins).

Method signature

public CreateCustomerResponse createCustomer(CreateCustomerRequest request) throws CommonException;

CreateCustomerRequest

Property name Value Required Description
customer_name string Yes The name of the company. For example XYZ Corp. Displayed to the company's employees in the zero-touch enrollment portal.
primary_emails List of object(string) Yes Email address of customer's users in the owner role. At least one email address is required. Each email address must be associated with a Google Account. Owners share the same access as admins but can also add, delete, and edit your organization's portal users.
secondary_emails List of object(string) No Email address of customer's users in the admin role. Each email address must be associated with a Google Account.

CreateCustomerResponse

Property name Value Description
customer object(Company) Object containing details of the newly created customer.

Error behavior

If an error occurs, the library throws a CommonException containing one of the following error codes:

Error code
INTERNAL_SERVER_ERROR

Enviar comentarios sobre…

Android zero-touch enrollment