agreementAcceptances を一覧表示する
名前空間: microsoft.graph
サインインしているユーザーの agreementAcceptance オブジェクトを取得 します。
アクセス許可
この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。
| アクセス許可の種類 | アクセス許可 (特権の小さいものから大きいものへ) |
|---|---|
| 委任 (職場または学校のアカウント) | AgreementAcceptance.Read |
| 委任 (個人用 Microsoft アカウント) | サポートされていません。 |
| アプリケーション | サポートされていません。 |
HTTP 要求
GET /me/agreementAcceptances
# where the id or userPrincipalName is the signed-in user's
GET /users/{id | userPrincipalName}/agreementAcceptances
オプションのクエリ パラメーター
このメソッドは、応答をカスタマイズするための OData クエリ パラメーターをサポートします。
要求ヘッダー
| 名前 | 説明 |
|---|---|
| Authorization | ベアラー {token}。必須。 |
要求本文
このメソッドには、要求本文を指定しません。
応答
成功した場合、このメソッドは応答 200 OK コードと、応答本文の agreementAcceptance オブジェクトのコレクションを返します。
例
要求
GET https://graph.microsoft.com/v1.0/me/agreementAcceptances
応答
注: ここに示す応答オブジェクトは、読みやすさのために短縮されている場合があります。
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#agreementAcceptances",
"value": [
{
"id": "94410bbf-3d3e-4683-8149-f034e55c39dd_d4bb5206-77bf-4d5c-96b4-cf7b0ed3be98",
"agreementId": "94410bbf-3d3e-4683-8149-f034e55c39dd",
"userId": "d4bb5206-77bf-4d5c-96b4-cf7b0ed3be98",
"deviceId": "00000000-0000-0000-0000-000000000000",
"deviceDisplayName": null,
"deviceOSType": null,
"deviceOSVersion": null,
"agreementFileId": "08033369-8972-42a3-8533-90bbd2757a01",
"userDisplayName": "Megan Bowen",
"userPrincipalName": "MeganB@M365x43961174.OnMicrosoft.com",
"userEmail": "MeganB@M365x43961174.OnMicrosoft.com",
"recordedDateTime": "2022-03-04T14:11:22.6658376Z",
"expirationDateTime": null,
"state": "accepted"
}
]
}
フィードバック
フィードバックの送信と表示