windowsPrivacyAccessControls アクションwindowsPrivacyAccessControls action
重要: ベータ版の Microsoft Graph Api は変更される可能性があります。運用環境での使用はサポートされていません。Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
注: Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
まだ文書化されていませんNot yet documented
前提条件Prerequisites
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
アクセス許可の種類Permission type | アクセス許可 (特権の大きいものから小さいものへ)Permissions (from most to least privileged) |
---|---|
委任 (職場または学校のアカウント)Delegated (work or school account) | |
デバイス構成 Device configuration | DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All |
委任 (個人用 Microsoft アカウント)Delegated (personal Microsoft account) | サポートされていません。Not supported. |
アプリケーションApplication | |
デバイス構成 Device configuration | DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All |
HTTP 要求HTTP Request
POST /deviceManagement/deviceConfigurations/{deviceConfigurationId}/windowsPrivacyAccessControls
POST /deviceManagement/deviceConfigurations/{deviceConfigurationId}/groupAssignments/{deviceConfigurationGroupAssignmentId}/deviceConfiguration/windowsPrivacyAccessControls
POST /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsDomainJoinConfiguration/networkAccessConfigurations/{deviceConfigurationId}/windowsPrivacyAccessControls
要求ヘッダーRequest headers
ヘッダーHeader | 値Value |
---|---|
AuthorizationAuthorization | ベアラー <トークン> が必要です。Bearer <token> Required. |
承諾Accept | application/jsonapplication/json |
要求本文Request body
要求本文で、パラメーターの JSON 表記を指定します。In the request body, supply JSON representation of the parameters.
次の表に、このアクションで使用できるパラメーターを示します。The following table shows the parameters that can be used with this action.
プロパティProperty | 型Type | 説明Description |
---|---|---|
windowsPrivacyAccessControlswindowsPrivacyAccessControls | windowsPrivacyDataAccessControlItemコレクションwindowsPrivacyDataAccessControlItem collection | まだ文書化されていませんNot yet documented |
応答Response
成功した場合、このアクションは 204 No Content
応答コードを返します。If successful, this action returns a 204 No Content
response code.
例Example
要求Request
以下は、要求の例です。Here is an example of the request.
POST https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/{deviceConfigurationId}/windowsPrivacyAccessControls
Content-type: application/json
Content-length: 379
{
"windowsPrivacyAccessControls": [
{
"@odata.type": "#microsoft.graph.windowsPrivacyDataAccessControlItem",
"id": "03b15556-5556-03b1-5655-b1035655b103",
"accessLevel": "forceAllow",
"dataCategory": "accountInfo",
"appPackageFamilyName": "App Package Family Name value",
"appDisplayName": "App Display Name value"
}
]
}
応答Response
以下は、応答の例です。注:簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。すべてのプロパティは実際の呼び出しから返されます。Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 204 No Content