depMacOSEnrollmentProfile を作成する

名前空間: microsoft.graph

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

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

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

この API は、次の国内クラウド展開で使用できます。

グローバル サービス 米国政府機関 L4 米国政府機関 L5 (DOD) 21Vianet が運営する中国

アクセス許可

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

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

HTTP 要求

POST /deviceManagement/depOnboardingSettings/{depOnboardingSettingId}/enrollmentProfiles

要求ヘッダー

ヘッダー
Authorization ベアラー {token}。 必須です。 認証と承認の詳細については、こちらをご覧ください。
承諾 application/json

要求本文

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

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

プロパティ 説明
id String enrollmentProfile から継承されたオブジェクトの GUID
displayName String enrollmentProfile から継承されたプロファイルの名前
説明 String enrollmentProfile から継承されたプロファイルの説明
requiresUserAuthentication ブール型 プロファイルでユーザー認証が必要かどうかを示します enrollmentProfile から継承
configurationEndpointUrl String enrollmentProfile から継承された登録に使用する構成エンドポイント URL
enableAuthenticationViaCompanyPortal ブール型 ポータル サイトではなく、Apple セットアップ アシスタントで認証することを示します。 enrollmentProfile から継承された
requireCompanyPortalOnSetupAssistantEnrolledDevices ブール型 登録されたデバイスのセットアップアシスタント enrollmentProfile から継承されたポータル サイトが必要であることを示します
isDefault ブール型 これが depEnrollmentBaseProfile から継承された既定のプロファイルであるかどうかを示します
supervisedModeEnabled ブール型 監視モード、有効にする場合は True、それ以外の場合は false。 詳細については、「」を参照してください https://learn.microsoft.com/intune/deploy-use/enroll-devices-in-microsoft-intunedepEnrollmentBaseProfile から継承される
supportDepartment String depEnrollmentBaseProfile から継承されたサポート部門の情報
isMandatory ブール型 プロファイルが必須かどうかを示します depEnrollmentBaseProfile から継承
locationDisabled ブール型 場所サービスのセットアップ ウィンドウが無効になっているかどうかを示します depEnrollmentBaseProfile から継承
supportPhoneNumber String 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 String リテラルまたは名前パターンを設定します。 depEnrollmentBaseProfile から継承される
configurationWebUrl ブール型 depEnrollmentBaseProfile から継承されたログインアシスタントセットアップの URL
enabledSkipKeys String collection enabledSkipKeys には、depEnrollmentBaseProfile から継承された文字列として、すべての有効なスキップ キーが含まれています
enrollmentTimeAzureAdGroupIds Guid コレクション EnrollmentTimeAzureAdGroupIds には、depEnrollmentBaseProfile から継承されたプロファイルに関連付ける Azure グループ ID の登録時間の一覧が含まれています
waitForDeviceConfiguredConfirmation ブール型 デバイスが depEnrollmentBaseProfile から継承された構成済みの確認を待機する必要があるかどうかを示します
registrationDisabled ブール型 登録が無効かどうかを示します
fileVaultDisabled ブール型 ファイル コンテナーが無効かどうかを示します
iCloudDiagnosticsDisabled ブール型 iCloud Analytics 画面が無効かどうかを示します
passCodeDisabled ブール型 [パスコードの設定] ウィンドウが無効になっているかどうかを示します
zoomDisabled ブール型 ズーム 設定ウィンドウが無効になっているかどうかを示します
iCloudStorageDisabled ブール型 iCloud ドキュメントとデスクトップ画面が無効かどうかを示します
chooseYourLockScreenDisabled ブール型 iCloud ドキュメントとデスクトップ画面が無効かどうかを示します
accessibilityScreenDisabled ブール型 アクセシビリティ画面が無効かどうかを示します
autoUnlockWithWatchDisabled ブール型 UnlockWithWatch 画面が無効かどうかを示します
skipPrimarySetupAccountCreation ブール型 セットアップ アシスタントがプライマリ アカウントのセットアップのユーザー インターフェイスをスキップするかどうかを示します
setPrimarySetupAccountAsRegularUser ブール型 セットアップ アシスタントがアカウントを通常のユーザーとして設定するかどうかを示します
dontAutoPopulatePrimaryAccountInfo ブール型 セットアップ アシスタントがプライマリ アカウント情報を自動入力するかどうかを示します
primaryAccountFullName String プライマリ アカウントの完全な名前を示します
primaryAccountUserName String プライマリ アカウントのアカウント名を示します
enableRestrictEditing ブール型 ユーザーがブロックの有効化を有効にするかどうかを示します
adminAccountUserName String 管理者アカウントのユーザー名を示します
adminAccountFullName String 管理者アカウントの完全な名前を示します
adminAccountPassword String 管理者アカウントのパスワードを示します
hideAdminAccount ブール型 管理者アカウントを非表示にするかどうかを示します
requestRequiresNetworkTether ブール型 コマンドを実行するためにデバイスがネットワークテザリングされているかどうかを示します
autoAdvanceSetupEnabled ブール型 セットアップ アシスタントが画面を自動的に進めるかどうかを示します

応答

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

要求

以下は、要求の例です。

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

{
  "@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"
  ],
  "enrollmentTimeAzureAdGroupIds": [
    "7f64eb6c-eb6c-7f64-6ceb-647f6ceb647f"
  ],
  "waitForDeviceConfiguredConfirmation": true,
  "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,
  "autoAdvanceSetupEnabled": true
}

応答

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

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

{
  "@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"
  ],
  "enrollmentTimeAzureAdGroupIds": [
    "7f64eb6c-eb6c-7f64-6ceb-647f6ceb647f"
  ],
  "waitForDeviceConfiguredConfirmation": true,
  "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,
  "autoAdvanceSetupEnabled": true
}