List trustFrameworkPolicies
Namespace: microsoft.graph
Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.
Retrieve a list of trustFrameworkPolicies in the tenant/directory.
Permissions
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 least to most privileged) |
---|---|
Delegated (work or school account) | Policy.Read.All, Policy.ReadWrite.TrustFramework |
Delegated (personal Microsoft account) | Not supported. |
Application | Policy.Read.All, Policy.ReadWrite.TrustFramework |
The work or school account must be a global administrator of the tenant.
HTTP request
GET /trustFramework/policies/
Optional query parameters
This method supports the $select
and $expand
OData query parameters to help customize the response.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of trustFrameworkPolicy objects in a JSON representation in the response body.
Example
The following example retrieves all trustFrameworkPolicies.
Request
GET https://graph.microsoft.com/beta/trustFramework/policies
Response
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"id": "B2C_1A_CustomPolicy2"
},
{
"id": "B2C_1A_CustomPolicy3"
},
{
"id": "B2C_1A_SocialAndLocalAccounts_Base"
}
]
}
Feedback
Submit and view feedback for