depMacOSEnrollmentProfile を作成する

名前空間: microsoft.graph

大事な: /beta バージョンの Microsoft Graph API は変更される可能性があります。運用環境での使用はサポートされていません。

注:Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。

新しい depMacOSEnrollmentProfile オブジェクトを 作成します。

アクセス許可

この API を呼び出すには、次のいずれかのアクセス許可が必要です。 アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。

アクセス許可の種類 アクセス許可 (特権の小さいものから大きいものへ)
委任 (職場または学校のアカウント) DeviceManagementServiceConfig.ReadWrite.All
委任 (個人用 Microsoft アカウント) サポートされていません。
アプリケーション DeviceManagementServiceConfig.ReadWrite.All

HTTP 要求

POST /deviceManagement/depOnboardingSettings/{depOnboardingSettingId}/enrollmentProfiles

要求ヘッダー

ヘッダー
承認 ベアラー <トークン> が必要です。
承諾 application/json

要求本文

要求本文で、depMacOSEnrollmentProfile オブジェクトの JSON 表現を指定します。

次の表は、depMacOSEnrollmentProfile を作成するときに必要なプロパティを示しています。

プロパティ 説明
id 文字列 enrollmentProfile から継承されたオブジェクトの GUID
displayName 文字列 enrollmentProfile から継承されたプロファイルの名前
説明 String enrollmentProfile から継承されたプロファイルの説明
requiresUserAuthentication ブール型 プロファイルでユーザー認証が必要かどうかを示します enrollmentProfile から継承
configurationEndpointUrl 文字列 enrollmentProfile から継承された登録に使用する構成エンドポイント URL
enableAuthenticationViaCompanyPortal ブール型 ポータル サイトではなく、Apple セットアップ アシスタントで認証することを示します。 enrollmentProfile から継承された
requireCompanyPortalOnSetupAssistantEnrolledDevices ブール型 セットアップ アシスタントの登録済みデバイスでポータル サイトが必要であることを示します enrollmentProfile から継承
isDefault ブール型 これが depEnrollmentBaseProfile から継承された既定のプロファイルであるかどうかを示します
supervisedModeEnabled ブール型 監視モード、有効にする場合は True、それ以外の場合は false。 詳細については、こちらを参照してくださいdepEnrollmentBaseProfile から継承される
supportDepartment 文字列 depEnrollmentBaseProfile から継承されたサポート部門の情報
isMandatory ブール型 プロファイルが必須かどうかを示します depEnrollmentBaseProfile から継承
locationDisabled ブール型 場所サービスのセットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
supportPhoneNumber 文字列 depEnrollmentBaseProfile から継承された電話番号をサポートする
profileRemovalDisabled ブール型 プロファイルの削除オプションが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
restoreBlocked ブール型 [セットアップの復元] ウィンドウがブロックされているかどうかを示します depEnrollmentBaseProfile からの継承
appleIdDisabled ブール型 Apple ID セットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
termsAndConditionsDisabled ブール型 [使用条件] セットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
touchIdDisabled ブール型 タッチ ID セットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
applePayDisabled ブール型 Apple の支払い設定ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
siriDisabled ブール型 siri セットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
diagnosticsDisabled ブール型 診断セットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
displayToneSetupDisabled ブール型 displaytone セットアップ画面が無効になっているかどうかを示します depEnrollmentBaseProfile から継承
privacyPaneDisabled ブール型 プライバシー画面が無効になっているかどうかを示します depEnrollmentBaseProfile から継承
screenTimeScreenDisabled ブール型 画面のタイムアウト設定が無効になっているかどうかを示します depEnrollmentBaseProfile から継承
deviceNameTemplate 文字列 リテラルまたは名前パターンを設定します。 depEnrollmentBaseProfile から継承される
configurationWebUrl ブール型 セットアップ アシスタント ログインの URL depEnrollmentBaseProfile から継承
enabledSkipKeys String collection enabledSkipKeys には、depEnrollmentBaseProfile から継承された文字列として、有効になっているすべてのスキップ キーが含まれています
registrationDisabled ブール型 登録が無効かどうかを示します
fileVaultDisabled ブール型 ファイル コンテナーが無効かどうかを示します
iCloudDiagnosticsDisabled ブール型 iCloud Analytics 画面が無効かどうかを示します
passCodeDisabled ブール型 [パスコードの設定] ウィンドウが無効になっているかどうかを示します
zoomDisabled ブール型 ズーム 設定ウィンドウが無効になっているかどうかを示します
iCloudStorageDisabled ブール型 iCloud ドキュメントとデスクトップ画面が無効かどうかを示します
chooseYourLockScreenDisabled ブール型 iCloud ドキュメントとデスクトップ画面が無効かどうかを示します
accessibilityScreenDisabled ブール型 アクセシビリティ画面が無効かどうかを示します
autoUnlockWithWatchDisabled ブール型 UnlockWithWatch 画面が無効かどうかを示します
skipPrimarySetupAccountCreation ブール型 セットアップ アシスタントがプライマリ アカウントのセットアップのユーザー インターフェイスをスキップするかどうかを示します
setPrimarySetupAccountAsRegularUser ブール型 セットアップ アシスタントがアカウントを通常のユーザーとして設定するかどうかを示します
dontAutoPopulatePrimaryAccountInfo ブール型 セットアップ アシスタントがプライマリ アカウント情報を自動入力するかどうかを示します
primaryAccountFullName 文字列 プライマリ アカウントの完全な名前を示します
primaryAccountUserName 文字列 プライマリ アカウントのアカウント名を示します
enableRestrictEditing ブール型 ユーザーがブロックの有効化を有効にするかどうかを示します
adminAccountUserName 文字列 管理者アカウントのユーザー名を示します
adminAccountFullName 文字列 管理者アカウントの完全な名前を示します
adminAccountPassword 文字列 管理者アカウントのパスワードを示します
hideAdminAccount ブール型 管理者アカウントを非表示にするかどうかを示します
requestRequiresNetworkTether ブール型 コマンドを実行するためにデバイスがネットワークテザリングされているかどうかを示します

応答

成功した場合、このメソッドは 201 Created 応答コードと、応答本文で depMacOSEnrollmentProfile オブジェクトを返します。

要求

以下は、要求の例です。

POST https://graph.microsoft.com/beta/deviceManagement/depOnboardingSettings/{depOnboardingSettingId}/enrollmentProfiles
Content-type: application/json
Content-length: 1951

{
  "@odata.type": "#microsoft.graph.depMacOSEnrollmentProfile",
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "enableAuthenticationViaCompanyPortal": true,
  "requireCompanyPortalOnSetupAssistantEnrolledDevices": true,
  "isDefault": true,
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "profileRemovalDisabled": true,
  "restoreBlocked": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "displayToneSetupDisabled": true,
  "privacyPaneDisabled": true,
  "screenTimeScreenDisabled": true,
  "deviceNameTemplate": "Device Name Template value",
  "configurationWebUrl": true,
  "enabledSkipKeys": [
    "Enabled Skip Keys value"
  ],
  "registrationDisabled": true,
  "fileVaultDisabled": true,
  "iCloudDiagnosticsDisabled": true,
  "passCodeDisabled": true,
  "zoomDisabled": true,
  "iCloudStorageDisabled": true,
  "chooseYourLockScreenDisabled": true,
  "accessibilityScreenDisabled": true,
  "autoUnlockWithWatchDisabled": true,
  "skipPrimarySetupAccountCreation": true,
  "setPrimarySetupAccountAsRegularUser": true,
  "dontAutoPopulatePrimaryAccountInfo": true,
  "primaryAccountFullName": "Primary Account Full Name value",
  "primaryAccountUserName": "Primary Account User Name value",
  "enableRestrictEditing": true,
  "adminAccountUserName": "Admin Account User Name value",
  "adminAccountFullName": "Admin Account Full Name value",
  "adminAccountPassword": "Admin Account Password value",
  "hideAdminAccount": true,
  "requestRequiresNetworkTether": true
}

応答

以下は、応答の例です。 注: 簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。 実際の呼び出しではすべてのプロパティが返されます。

HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 2000

{
  "@odata.type": "#microsoft.graph.depMacOSEnrollmentProfile",
  "id": "e433c95c-c95c-e433-5cc9-33e45cc933e4",
  "displayName": "Display Name value",
  "description": "Description value",
  "requiresUserAuthentication": true,
  "configurationEndpointUrl": "https://example.com/configurationEndpointUrl/",
  "enableAuthenticationViaCompanyPortal": true,
  "requireCompanyPortalOnSetupAssistantEnrolledDevices": true,
  "isDefault": true,
  "supervisedModeEnabled": true,
  "supportDepartment": "Support Department value",
  "isMandatory": true,
  "locationDisabled": true,
  "supportPhoneNumber": "Support Phone Number value",
  "profileRemovalDisabled": true,
  "restoreBlocked": true,
  "appleIdDisabled": true,
  "termsAndConditionsDisabled": true,
  "touchIdDisabled": true,
  "applePayDisabled": true,
  "siriDisabled": true,
  "diagnosticsDisabled": true,
  "displayToneSetupDisabled": true,
  "privacyPaneDisabled": true,
  "screenTimeScreenDisabled": true,
  "deviceNameTemplate": "Device Name Template value",
  "configurationWebUrl": true,
  "enabledSkipKeys": [
    "Enabled Skip Keys value"
  ],
  "registrationDisabled": true,
  "fileVaultDisabled": true,
  "iCloudDiagnosticsDisabled": true,
  "passCodeDisabled": true,
  "zoomDisabled": true,
  "iCloudStorageDisabled": true,
  "chooseYourLockScreenDisabled": true,
  "accessibilityScreenDisabled": true,
  "autoUnlockWithWatchDisabled": true,
  "skipPrimarySetupAccountCreation": true,
  "setPrimarySetupAccountAsRegularUser": true,
  "dontAutoPopulatePrimaryAccountInfo": true,
  "primaryAccountFullName": "Primary Account Full Name value",
  "primaryAccountUserName": "Primary Account User Name value",
  "enableRestrictEditing": true,
  "adminAccountUserName": "Admin Account User Name value",
  "adminAccountFullName": "Admin Account Full Name value",
  "adminAccountPassword": "Admin Account Password value",
  "hideAdminAccount": true,
  "requestRequiresNetworkTether": true
}