AgreementAcceptance.Read.All
Allows the app to read terms of use acceptance statuses, without a signed in user.
Permission Details
Read all terms of use acceptance statuses
Allows the app to read terms of use acceptance statuses, without a signed in user.
d8e4ec18-f6c0-4620-8122-c8b1f2bf400e
Read terms of use acceptance statuses that user can access
Allows the app to read terms of use acceptance statuses on behalf of the signed-in user.
a66a5341-e66e-4897-9d52-c2df58c2bfb9
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
agreementFileId |
StringNullable |
The identifier of the agreement file accepted by the user. |
agreementId |
StringNullable |
The identifier of the agreement. |
deviceDisplayName |
StringNullable |
The display name of the device used for accepting the agreement. |
deviceId |
StringNullable |
The unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values. |
deviceOSType |
StringNullable |
The operating system used to accept the agreement. |
deviceOSVersion |
StringNullable |
The operating system version of the device used to accept the agreement. |
expirationDateTime |
DateTimeOffsetNullable |
The expiration date time of the acceptance. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and eq for null values. |
id |
String |
The identifier of the agreement acceptance. Read-only. Supports $filter (eq). |
recordedDateTime |
DateTimeOffsetNullable |
The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. |
state |
string |
The state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq). |
userDisplayName |
StringNullable |
Display name of the user when the acceptance was recorded. |
userEmail |
StringNullable |
Email of the user when the acceptance was recorded. |
userId |
StringNullable |
The identifier of the user who accepted the agreement. Supports $filter (eq). |
userPrincipalName |
StringNullable |
UPN of the user when the acceptance was recorded. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "microsoft.graph.agreementAcceptance",
"agreementFileId": "String",
"agreementId": "String",
"deviceDisplayName": "String",
"deviceId": "String",
"deviceOSType": "String",
"deviceOSVersion": "String",
"expirationDateTime": "String",
"id": "String (identifier)",
"recordedDateTime": "String (timestamp)",
"state": "String",
"userDisplayName": "String",
"userEmail": "String",
"userId": "String",
"userPrincipalName": "String",
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/identityGovernance/termsOfUse/agreements/{agreementsId}/acceptances
|
GET
/me/agreementAcceptances
|
GET
/users/{id | userPrincipalName}/agreementAcceptances
|
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
GET
/identityGovernance/termsOfUse/agreements/{agreementsId}/acceptances
|
GET
/me/agreementAcceptances
|
GET
/users/{id | userPrincipalName}/agreementAcceptances
|
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.IdentityGovernance.TermsOfUse.Agreements["{agreement-id}"].Acceptances.GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let acceptances = await client.api('/identityGovernance/termsOfUse/agreements/94410bbf-3d3e-4683-8149-f034e55c39dd/acceptances')
.get();
Import-Module Microsoft.Graph.Identity.Governance
# A UPN can also be used as -UserId.
Get-MgUserAgreementAcceptance -UserId $userId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.identity_governance.terms_of_use.agreements.by_agreement_id('agreement-id').acceptances.get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for AgreementAcceptance.Read.All
Grant Admin Consent
Application permissions always require admin consent.