গ্রাহক তৈরি করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নক্স বা জিরো-টাচ নথিভুক্তির জন্য একটি কোম্পানি (গ্রাহক) অনন্যভাবে সনাক্ত করতে একটি Company
অবজেক্ট তৈরি করে। পদ্ধতিটি সফলভাবে ফিরে আসার পরে, নির্দিষ্ট মালিকরা ( primary_emails
) বা প্রশাসক ( secondary_emails
) জিরো টাচ গ্রাহক পোর্টাল অ্যাক্সেস করতে তাদের ইমেল ঠিকানাগুলি একটি Google অ্যাকাউন্টের সাথে সংযুক্ত করতে পারেন (বিশদ বিবরণের জন্য, আইটি প্রশাসকদের জন্য জিরো-টাচ এনরোলমেন্ট দেখুন) বা একটি Samsung অ্যাকাউন্ট নক্স মোবাইল এনরোলমেন্ট (কেএমই) পোর্টাল অ্যাক্সেস করতে।
পদ্ধতি স্বাক্ষর
public CreateCustomerResponse createCustomer(CreateCustomerRequest request) throws CommonException;
গ্রাহক অনুরোধ তৈরি করুন
সম্পত্তির নাম | মান | প্রয়োজন | বর্ণনা |
---|
customer_name | string | হ্যাঁ | কোম্পানির নাম। যেমন XYZ Corp. জিরো-টাচ এনরোলমেন্ট পোর্টালে কোম্পানির কর্মচারীদের কাছে প্রদর্শিত। |
primary_emails | object(string) | হ্যাঁ | জিরো-টাচ: মালিকের ভূমিকায় গ্রাহকের ব্যবহারকারীদের ইমেল ঠিকানা। অন্তত একটি ইমেল ঠিকানা প্রয়োজন. প্রতিটি ইমেল ঠিকানা অবশ্যই একটি Google অ্যাকাউন্টের সাথে যুক্ত হতে হবে৷ মালিকরা প্রশাসকদের মতো একই অ্যাক্সেস ভাগ করে তবে আপনার সংস্থার পোর্টাল ব্যবহারকারীদের যোগ, মুছতে এবং সম্পাদনা করতে পারে৷
Samsung: গ্রাহকের সুপার অ্যাডমিনের ইমেল ঠিকানা। স্যামসাং শুধুমাত্র তালিকার প্রথম ইমেল নেয়। ইমেল ঠিকানা অবশ্যই একটি Samsung অ্যাকাউন্টের সাথে যুক্ত হতে হবে৷ |
secondary_emails | object(string) | না | অ্যাডমিন ভূমিকায় গ্রাহকের ব্যবহারকারীদের ইমেল ঠিকানা। প্রতিটি ইমেল ঠিকানা অবশ্যই একটি Google অ্যাকাউন্টের সাথে যুক্ত হতে হবে৷ দ্রষ্টব্য: এই সম্পত্তি Samsung দ্বারা সমর্থিত নয়. |
vendorParams | map | জিরো-টাচ: না
স্যামসাং: হ্যাঁ | অতিরিক্ত ক্ষেত্র, বিক্রেতা নির্দিষ্ট কী-মান জোড়া। SamsungResellerService ক্লাসের অনুরোধগুলি অবশ্যই উল্লেখ করতে হবে:
"দেশ": গ্রাহকের ISO 3166-1 দেশের কোড , উদাহরণস্বরূপ "US"।
"firstName": গ্রাহকের প্রথম নাম (সর্বোচ্চ 60 অক্ষর)।
"lastName": গ্রাহকের শেষ নাম (সর্বোচ্চ 60 অক্ষর)।
"service": "KME" একমাত্র সমর্থিত মান। |
গ্রাহক প্রতিক্রিয়া তৈরি করুন
সম্পত্তির নাম | মান | বর্ণনা |
---|
customer | object( Company ) | নতুন তৈরি গ্রাহকের বিবরণ ধারণকারী বস্তু. |
vendor_params | map | অতিরিক্ত ক্ষেত্র, বিক্রেতা নির্দিষ্ট কী-মানের জোড়া (শুধুমাত্র স্যামসাং)। |
ত্রুটি আচরণ
যদি একটি ত্রুটি ঘটে, লাইব্রেরি নিম্নলিখিত ত্রুটি কোডগুলির মধ্যে একটি সম্বলিত একটি CommonException
নিক্ষেপ করে:
CommonException
ত্রুটি কোড |
---|
INTERNAL_SERVER_ERROR |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis process creates a \u003ccode\u003eCompany\u003c/code\u003e object to uniquely identify a customer for Knox or zero-touch enrollment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecustomer_name\u003c/code\u003e, \u003ccode\u003eprimary_emails\u003c/code\u003e, and \u003ccode\u003evendorParams\u003c/code\u003e are required parameters for creating a customer, and \u003ccode\u003esecondary_emails\u003c/code\u003e is optional.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eprimary_emails\u003c/code\u003e are email addresses for owners (for zero-touch) or super admins (for Samsung), who can access the zero-touch or Knox Mobile Enrollment portal, and must be associated with a Google Account or Samsung Account, respectively.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esecondary_emails\u003c/code\u003e represent admin users for zero-touch enrollment, must be associated with a Google Account, and are not supported by Samsung.\u003c/p\u003e\n"],["\u003cp\u003eThe method throws a \u003ccode\u003eCommonException\u003c/code\u003e with an \u003ccode\u003eINTERNAL_SERVER_ERROR\u003c/code\u003e if an issue occurs during customer creation.\u003c/p\u003e\n"]]],["This document outlines how to create a `Company` object to identify a customer for Knox or zero-touch enrollment. The `createCustomer` method requires a company name and a list of primary email addresses (owners/super admins). Secondary email addresses (admins) are optional for zero-touch. Samsung requests also need `vendorParams`, specifying country, first name, last name, and \"KME\" service. Successful creation returns a `Company` object, allowing associated emails access to the zero-touch or KME portal. Errors result in a `CommonException`.\n"],null,["# createCustomer\n\nCreates a [`Company`](/zero-touch/reseller-library/reference/objects#company)\nobject to uniquely identify a company (customer) for Knox or zero-touch\nenrollment. After the method returns successfully, the specified owners (`primary_emails`)\nor admins (`secondary_emails`) can associate their email addresses with a Google\nAccount to access the [zero touch customer portal](https://enterprise.google.com/android/zero-touch/customers)\n(for details, see [Zero-touch enrollment for IT admins](https://support.google.com/work/android/answer/7514005))\nor a Samsung Account to access the Knox Mobile Enrollment (KME) portal.\n\nMethod signature\n----------------\n\n public CreateCustomerResponse createCustomer(CreateCustomerRequest request) throws CommonException;\n\nCreateCustomerRequest\n---------------------\n\n| Property name | Value | Required | Description |\n|--------------------|--------------------------|-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `primary_emails` | List of `object(string)` | Yes | **Zero-touch:** 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. **Samsung:** Email address of customer's super admin. Samsung only takes the first email in the list. Email address must be associated with a Samsung Account. |\n| `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. **Note:** This property is not supported by Samsung. |\n| `vendorParams` | `map` | **Zero-touch:** No **Samsung:** Yes | Extra fields, vendor specified key-value pair. Requests from the `SamsungResellerService` class must specify: \"country\": [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the customer, for example \"US\". \"firstName\": first name of the customer (max. 60 characters). \"lastName\": last name of the customer (max. 60 characters). \"service\": \"KME\" is the only supported value. |\n\nCreateCustomerResponse\n----------------------\n\n| Property name | Value | Description |\n|-----------------|---------------------------------------------------------------------------------|---------------------------------------------------------------|\n| `customer` | `object(`[`Company`](/zero-touch/reseller-library/reference/objects#company)`)` | Object containing details of the newly created customer. |\n| `vendor_params` | `map` | Extra fields, vendor specified key-value pair (Samsung only). |\n\nError behavior\n--------------\n\nIf an error occurs, the library throws a `CommonException` containing one of the\nfollowing error codes:\n\n### `CommonException`\n\n| Error code |\n|-------------------------|\n| `INTERNAL_SERVER_ERROR` |"]]