---
title: Microsoft Graph API Audit and Compliance
slug: connectors/microsoft-graph-api-audit-and-compliance
docTags: 
createdAt: 2026-06-09T16:29:56.115Z
---

The Microsoft Graph API Audit and Compliance connector provides streamlined access to security and compliance data from Microsoft services, enabling automated processes for monitoring and enhancing organizational security.

Microsoft Graph API Audit and Compliance connector enables Swimlane Turbine users to automate the retrieval and analysis of sign-in and audit logs, as well as security compliance data from Microsoft Entra and Microsoft Graph Security API. This integration facilitates proactive security monitoring, simplifies compliance checks, and enhances organizational security posture by leveraging Microsoft's comprehensive audit trails and secure score metrics. Users can customize queries, filter results, and manage security scores directly within Swimlane Turbine, streamlining security operations and compliance management.

## Configuration

### Prerequisites

To utilize the Microsoft Graph API Audit and Compliance connector, ensure you have the following prerequisites:

- Client Credentials and Tenant ID authentication with these parameters:
  - URL: Endpoint for Microsoft Graph API
  - Client ID: Application (client) ID registered in Azure AD
  - Client Secret: Confidential string used to authenticate the application
  - Tenant ID: Unique identifier of your Azure AD tenant
  - Scope: Permissions the app requires
- OAuth 2.0 Client Credentials with these parameters:
  - URL: Endpoint for Microsoft Graph API
  - Client ID: Application (client) ID registered in Azure AD
  - Client Secret: Confidential string used to authenticate the application
  - Token URL: URL to obtain the OAuth 2.0 token
  - Scope: Permissions the app requires
- Delegated Flow Authentication with these parameters:
  - URL: Endpoint for Microsoft Graph API
  - Tenant ID: Unique identifier of your Azure AD tenant
    *... and so on*

## Authentication Methods

### OAuth 2.0 client credentials authentication with these parameters:

- url: Endpoint for Microsoft Graph API.
- client\_id: Application (client) ID registered in Azure AD.
- client\_secret: Client secret (key) generated for the application in Azure AD.
- token\_url: URL to retrieve the OAuth token.
- scope: Permissions the app requires.

### Password Grant (Delegated Authentication) for acting on behalf of a user:

- url: Endpoint for Microsoft Graph API.
- tenant\_id: Directory ID of the Azure AD tenant.
- oauth\_un: User's username to authenticate.
- oauth\_pwd: User's password to authenticate.
- oauth\_cl\_id: Application (client) ID registered in Azure AD.
- oauth\_cl\_secret: Client secret (key) generated for the application in Azure AD.
- login\_url: Login URL. Default value is [https://login.microsoftonline.com](https://login.microsoftonline.com). (Optional).
- scope: Permissions the app requires. Optional field. (Optional).

### Asset credentials specific to your organization (Microsoft Graph API Asset - Tenant ID):

- url: Endpoint for Microsoft Graph API.
- client\_ID: Application (client) ID registered in Azure AD.
- client\_Secret: Client secret (key) generated for the application in Azure AD.
- tenant\_id: Directory ID of the Azure AD tenant.
- scope: Permissions the app requires.

### Authentication for OAuth2 Refresh Token Grant credentials for Microsoft Graph API authentication

- url: Endpoint for Microsoft Graph API.
- client\_ID: Application (client) ID registered in Azure AD.
- client\_Secret: Client secret (key) generated for the application in Azure AD.
- refresh\_token: Refresh Token.
- scope: Permissions the app requires.

## Capabilities

The Microsoft Graph API connector gives the ability to get and update security alerts, and modify user licenses and sessions.

- Audit Logs Get SignIn
- Audit Logs List SignIns
- Get Secure Control Profiles
- Get Secure Scores List
- Get Secure Score

## Asset Setup

### Client Credential Flow Authentication

Authentication uses Azure application OAuth2.  You will need an admin account in Azure to create the application.

Recommended Application Permissions (feel free use custom permissions if you only use
certain actions):

- User.ReadWrite.All
- Directory.ReadWrite.All
- AuditLog.Read.All
- SecurityEvents.ReadWrite.All

In order to set up the asset, you need the following:

- Azure Application Client ID
- Azure Application Client Secret
- Azure Tenant ID

Steps to create the Azure app:

1. Go to the [App Registration page](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)
   in the Azure portal.
2. Click `New Registration`.
3. Enter a name for your new application and choose `Accounts in this organizational directory only`,
   then click `Register` at the bottom.
4. Navigate to the `API permissions` tab on the left navigation menu.
5. Select `Add a permission`.
6. Select `Microsoft Graph`.
7. Select `Application permissions`, then mark all the permissions you need for the
   actions you are using (See suggested permissions at the top of the asset setup section).
8. Click the `Add permissions` button at the bottom of the page.
9. Select `Grant admin consent` for your organization, then your permissions should look as below.
10. Navigate to the `Certificates & secrets` tab and select `New client secret`.
11. Fill out the description and expiration, then click the `Add` button at the bottom.
12. The `Value` of the secret you just created is the `Client Secret` needed for the Swimlane asset.
13. Navigate to the `Overview` tab on the left menu.
14. The `Client ID` and `Tenant ID` needed in the asset are shown on this page.

The `Client ID`, `Tenant ID`, and `Client Secret` described in the steps above are the credentials you
need for the asset.

### Password Flow (Delegated Auth)

- Use Delegated Permissions, instead of Application Permissions, and generate `Client ID`, `Tenant ID`, and `Client Secret` as described in the above Client Credential Flow Authentication.
- We also need an `Username` and a `Password` for this authentication.

### Authentication flow for OAuth2 Refresh Token

- Oauth 2.0 refresh token grant, which requires a `Refresh Token`,`Tenant ID`, `Client ID` and `Client Secret`. Use this auth with accounts which have MFA enabled. To generate a refresh token please follow the instructions below.
  - In step 3 of the above-mentioned setup instructions, please provide a `Redirect URI` and select the platform as 'Web', before clicking on `Register` at the the bottom.
  - Proceed with the remaining steps to generate 'Client ID', `Tenant ID` and `Client Secret`.
  - Add the permissions in **Delegated Permissions**.
  - The Swimlane team will provide a Python script and instructions on how to use the script to generate the Refresh Token.

### Limit Access to specific mailboxes

Administrators who want to limit app access to specific mailboxes can create an application access policy by using
the **New-ApplicationAccessPolicy** PowerShell cmdlet.
For more information please see the article [Limiting application permissions to specific Exchange Online mailboxes](https://docs.microsoft.com/en-us/graph/auth-limit-mailbox-access).

## Action Setup

### OData filters

Information on the filter input formatting can be found [here](https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter).

Keep in mind that not specifying a folder as an input will result in the query affecting all possible folders.
Example:
If we want to ingest only unread emails, and we don't set the input "folder", we will ingest all unread emails from all folders, including "Deleted Items", "Junk", etc.

### Well Known Folders

Well known folders can be used instead of Folder IDs for email actions.  All well known folder names can be found
[here](https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0).

### Sites Get Site

All the Sites actions require the site ID to be executed. The site ID can be obtained using the action Sites Get Site, in
order to run the action the `site_hostname` and `site_name` are needed. This two values can be found in a site URL:

```javascript
https://{site_hostname}.sharepoint.com/sites/{site_name}
```

For example if our site URL is `https://swimlaneintegrations.sharepoint.com/sites/IntegrationsSite` we should use:

- `site_hostname`: `swimlaneintegrations`
- `site_name`: `IntegrationsSite`

After the action execution you can find the Site ID on the `ID` output field.

### Sites Create List

In order to create a list with its columns, use the input `Columns`. You can find all the possible values with
its configuration on the following table.

| Property name         | Type                                                                                                                                | Description                                                       |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| boolean               | [booleanColumn](https://docs.microsoft.com/en-us/graph/api/resources/booleancolumn?view=graph-rest-1.0)                             | This column stores boolean values.                                |
| calculated            | [calculatedColumn](https://docs.microsoft.com/en-us/graph/api/resources/calculatedcolumn?view=graph-rest-1.0)                       | This column's data is calculated based on other columns.          |
| choice                | [choiceColumn](https://docs.microsoft.com/en-us/graph/api/resources/choicecolumn?view=graph-rest-1.0)                               | This column stores data from a list of choices.                   |
| currency              | [currencyColumn](https://docs.microsoft.com/en-us/graph/api/resources/currencycolumn?view=graph-rest-1.0)                           | This column stores currency values.                               |
| dateTime              | [dateTimeColumn](https://docs.microsoft.com/en-us/graph/api/resources/datetimecolumn?view=graph-rest-1.0)                           | This column stores DateTime values.                               |
| geolocation           | [geolocationColumn](https://docs.microsoft.com/en-us/graph/api/resources/geolocationcolumn?view=graph-rest-1.0)                     | This column stores a geolocation.                                 |
| lookup                | [lookupColumn](https://docs.microsoft.com/en-us/graph/api/resources/lookupcolumn?view=graph-rest-1.0)                               | This column's data is looked up from another source in the site.  |
| number                | [numberColumn](https://docs.microsoft.com/en-us/graph/api/resources/numbercolumn?view=graph-rest-1.0)                               | This column stores number values.                                 |
| personOrGroup         | [personOrGroupColumn](https://docs.microsoft.com/en-us/graph/api/resources/personorgroupcolumn?view=graph-rest-1.0)                 | This column stores Person or Group values.                        |
| text                  | [textColumn](https://docs.microsoft.com/en-us/graph/api/resources/textcolumn?view=graph-rest-1.0)                                   | This column stores text values.                                   |
| validation            | [columnValidation](https://docs.microsoft.com/en-us/graph/api/resources/columnvalidation?view=graph-rest-1.0)                       | This column stores validation formula and message for the column. |
| hyperlinkOrPicture    | [hyperlinkOrPictureColumn](https://docs.microsoft.com/en-us/graph/api/resources/hyperlinkorpicturecolumn?view=graph-rest-1.0)       | This column stores hyperlink or picture values.                   |
| term                  | [termColumn](https://docs.microsoft.com/en-us/graph/api/resources/termcolumn?view=graph-rest-1.0)                                   | This column stores taxonomy terms.                                |
| thumbnail             | [thumbnailColumn](https://docs.microsoft.com/en-us/graph/api/resources/thumbnailcolumn?view=graph-rest-1.0)                         | This column stores thumbnail values.                              |
| contentApprovalStatus | [contentApprovalStatusColumn](https://docs.microsoft.com/en-us/graph/api/resources/contentapprovalstatuscolumn?view=graph-rest-1.0) | This column stores content approval status.                       |

For a complete version of this table please see [the official column definition table.](https://docs.microsoft.com/en-us/graph/api/resources/columndefinition?view=graph-rest-1.0#properties)

### Create List Column

Refer to the above table to get the `Type properties` and `Column type` input. The `Type properties` are
documented within the links in the `Type` column.

### Get list items

In order to use the filter input please refer to the [OData filters](docId\:D-syIHB-e6ds5MFglFqYf) section.

The column used to filter the output must be indexed, see the [Microsoft documentation](https://support.microsoft.com/en-us/office/add-an-index-to-a-list-or-library-column-f3f00554-b7dc-44d1-a2ed-d477eac463b0?ui=en-us\&rs=en-us\&ad=us) to add an index to a list.

## Limitations

When using `$filter` and `$orderby` in the same query to get messages, make sure to specify properties in the following ways:

- Properties that appear in `$orderby` must also appear in $filter.
- Properties that appear in `$orderby` are in the same order as in $filter.
- Properties that are present in `$orderby` appear in `$filter` before any properties that aren't.

Failing to do this results in the following error:

- Error code: InefficientFilter
- Error message: The restriction or sort order is too complex for this operation.

The Assign/Remove User License requires either the disabled plans and accompanying SKU IDs to assign licenses or the
SKU ID of the license you want to remove.

The Get Security Alert has additional information it can return. There are a large number of fields that don't
relate to many alerts, so they are not mapped; you can add them if desired.

## Notes

- [An Introduction to Microsoft Graph API](https://social.technet.microsoft.com/wiki/contents/articles/33525.an-introduction-to-microsoft-graph-api.aspx)
- [Microsoft Graph Security API Homepage](https://www.microsoft.com/en-us/security/intelligence-security-api)
- [Microsoft Graph REST API v1.0 reference](https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0)
- [Query Parameters Documentation - OData V4](https://docs.microsoft.com/en-us/graph/query-parameters)
- [Azure AD OAuth2 flow](https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code)
- [oauthlib Legacy Application client](https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html#legacy-application-flow), this is sort of a hack to bypass manual login (typically required)
- [Microsoft Graph Reports Audit Logs API reference](https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0)

# Configurations

## Microsoft Graph API Asset - Tenant ID

Authenticates using Client Credentials and Tenant ID

### Configuration Parameters

| **Parameter**  | **Description**                            | **Type** | **Required** |
| -------------- | ------------------------------------------ | -------- | ------------ |
| url            | A URL to the target host.                  | string   | Required     |
| tenant\_id     | The Tenant ID.                             | string   | Required     |
| client\_ID     | The client ID                              | string   | Required     |
| client\_Secret | The client secret.                         | string   | Required     |
| scope          | List of permission scopes for this action. | array    | Required     |
| verify\_ssl    | Verify SSL certificate                     | boolean  | Optional     |
| http\_proxy    | A proxy to route requests through.         | string   | Optional     |

## Password Grant (Delegated Authentication)

Authenticates on behalf of a user using oauth 2.0 credentials

### Configuration Parameters

| **Parameter**     | **Description**                    | **Type** | **Required** |
| ----------------- | ---------------------------------- | -------- | ------------ |
| url               | A URL to the target host.          | string   | Required     |
| login\_url        |                                    | string   | Optional     |
| tenant\_id        |                                    | string   | Required     |
| oauth\_un         | The username for authentication    | string   | Required     |
| oauth\_pwd        | The password for authentication    | string   | Required     |
| oauth\_cl\_id     | The client ID                      | string   | Required     |
| oauth\_cl\_secret | The client secret.                 | string   | Required     |
| scope             | Permission scopes for this action. | array    | Optional     |
| verify\_ssl       | Verify SSL certificate             | boolean  | Optional     |
| http\_proxy       | A proxy to route requests through. | string   | Optional     |

## Oauth 2.0 Client Credentials

Authenticates using oauth 2.0 client credentials

### Configuration Parameters

| **Parameter**  | **Description**                                                                                                                                                               | **Type** | **Required** |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------ |
| url            | A URL to the target host.                                                                                                                                                     | string   | Required     |
| token\_url     | Must start with [https://login.microsoftonline.com/](https://login.microsoftonline.com/) and then continue with the tenant\_id, and then be prepended with /oauth2/v2.0/token | string   | Required     |
| client\_id     | The client ID                                                                                                                                                                 | string   | Required     |
| client\_secret | The client secret.                                                                                                                                                            | string   | Required     |
| scope          | List of permission scopes for this action.                                                                                                                                    | array    | Required     |
| verify\_ssl    | Verify SSL certificate                                                                                                                                                        | boolean  | Optional     |
| http\_proxy    | A proxy to route requests through.                                                                                                                                            | string   | Optional     |

## MS Graph OpenID Connect Refresh Token Grant

Authenticates using refresh token.

### Configuration Parameters

| **Parameter**  | **Description**                    | **Type** | **Required** |
| -------------- | ---------------------------------- | -------- | ------------ |
| url            | A URL to the target host.          | string   | Required     |
| cl\_id         | The client ID.                     | string   | Required     |
| cl\_secret     | The client secret.                 | string   | Required     |
| refresh\_token | Refresh Token.                     | string   | Optional     |
| verify\_ssl    | Verify SSL certificate             | boolean  | Optional     |
| http\_proxy    | A proxy to route requests through. | string   | Optional     |

# Actions

## Audit Logs Get SignIn

Retrieve details for a specific sign-in event in Microsoft Entra using the provided tenant's unique ID.

### Endpoint

- **URL:** `/v1.0/auditLogs/signIns/{{id}}`
- **Method:** `GET`

### Input

| **Argument Name**    | **Type** | **Required** | **Description**                                 |
| -------------------- | -------- | ------------ | ----------------------------------------------- |
| `path_parameters.id` | string   | Required     | Parameters for the Audit Logs Get SignIn action |

### Input Example

`{"path_parameters":{"id":"66ea54eb-6301-4ee5-be62-ff5a759b0100"}}`

### Output

| **Parameter**                    | **Type** | **Description**                  |
| -------------------------------- | -------- | -------------------------------- |
| `status_code`                    | number   | HTTP status code of the response |
| `reason`                         | string   | Response reason phrase           |
| `@odata.context`                 | string   | Response data                    |
| `value`                          | array    | Value for the parameter          |
| `value.id`                       | string   | Unique identifier                |
| `value.createdDateTime`          | string   | Value for the parameter          |
| `value.userDisplayName`          | string   | Name of the resource             |
| `value.userPrincipalName`        | string   | Name of the resource             |
| `value.userId`                   | string   | Unique identifier                |
| `value.appId`                    | string   | Unique identifier                |
| `value.appDisplayName`           | string   | Name of the resource             |
| `value.ipAddress`                | string   | Value for the parameter          |
| `value.clientAppUsed`            | string   | Value for the parameter          |
| `value.correlationId`            | string   | Unique identifier                |
| `value.conditionalAccessStatus`  | string   | Status value                     |
| `value.isInteractive`            | boolean  | Value for the parameter          |
| `value.riskDetail`               | string   | Value for the parameter          |
| `value.riskLevelAggregated`      | string   | Value for the parameter          |
| `value.riskLevelDuringSignIn`    | string   | Value for the parameter          |
| `value.riskState`                | string   | Value for the parameter          |
| `value.riskEventTypes`           | array    | Type of the resource             |
| `value.riskEventTypes.file_name` | string   | Name of the resource             |
| `value.riskEventTypes.file`      | string   | Type of the resource             |
| `value.resourceDisplayName`      | string   | Name of the resource             |
| `value.resourceId`               | string   | Unique identifier                |

### Output Example

`{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#auditLogs/signIns","value":[{"id":"66ea54eb-6301-4ee5-be62-ff5a759b0100","createdDateTime":"2023-12-01T16:03:24Z","userDisplayName":"Test Contoso","userPrincipalName":"testaccount1@contoso.com","userId":"26be570a-ae82-4189-b4e2-a37c6808512d","appId":"de8bc8b5-d9f9-48b1-a8ad-b748da725064","appDisplayName":"Graph explorer","ipAddress":"131.107.159.37","clientAppUsed":"Browser","correlationId":"d79f5bee-5860-4832-928f-3133e22ae912","cond...`

## Audit Logs List SignIns

Retrieve Microsoft Entra user sign-in logs to analyze access patterns and trends for a specified tenant.

### Endpoint

- **URL:** `/v1.0/auditLogs/signIns`
- **Method:** `GET`

### Input

| **Argument Name**       | **Type** | **Required** | **Description**                                                               |
| ----------------------- | -------- | ------------ | ----------------------------------------------------------------------------- |
| `parameters.$top`       | number   | Optional     | Sets the page size of results.                                                |
| `parameters.$skiptoken` | string   | Optional     | Retrieves the next page of results from result sets that span multiple pages. |
| `parameters.$filter`    | string   | Optional     | Filters results (rows).                                                       |

### Input Example

`{"parameters":{"$top":2,"$skiptoken":"9177f2e3532fcd4c4d225f68f7b9bdf7_1","$filter":"createdDateTime ge 2024-07-01T00:00:00Z and createdDateTime le 2024-07-14T23:59:59Z"}}`

### Output

| **Parameter**                    | **Type** | **Description**                  |
| -------------------------------- | -------- | -------------------------------- |
| `status_code`                    | number   | HTTP status code of the response |
| `reason`                         | string   | Response reason phrase           |
| `@odata.context`                 | string   | Response data                    |
| `@odata.nextLink`                | string   | Response data                    |
| `value`                          | array    | Value for the parameter          |
| `value.id`                       | string   | Unique identifier                |
| `value.createdDateTime`          | string   | Value for the parameter          |
| `value.userDisplayName`          | string   | Name of the resource             |
| `value.userPrincipalName`        | string   | Name of the resource             |
| `value.userId`                   | string   | Unique identifier                |
| `value.appId`                    | string   | Unique identifier                |
| `value.appDisplayName`           | string   | Name of the resource             |
| `value.ipAddress`                | string   | Value for the parameter          |
| `value.clientAppUsed`            | string   | Value for the parameter          |
| `value.correlationId`            | string   | Unique identifier                |
| `value.conditionalAccessStatus`  | string   | Status value                     |
| `value.isInteractive`            | boolean  | Value for the parameter          |
| `value.riskDetail`               | string   | Value for the parameter          |
| `value.riskLevelAggregated`      | string   | Value for the parameter          |
| `value.riskLevelDuringSignIn`    | string   | Value for the parameter          |
| `value.riskState`                | string   | Value for the parameter          |
| `value.riskEventTypes`           | array    | Type of the resource             |
| `value.riskEventTypes.file_name` | string   | Name of the resource             |
| `value.riskEventTypes.file`      | string   | Type of the resource             |
| `value.resourceDisplayName`      | string   | Name of the resource             |

### Output Example

`{"@odata.context":"string","@odata.nextLink":"string","value":[{"id":"12345678-1234-1234-1234-123456789abc","createdDateTime":"string","userDisplayName":"Example Name","userPrincipalName":"Example Name","userId":"string","appId":"string","appDisplayName":"Example Name","ipAddress":"string","clientAppUsed":"string","correlationId":"string","conditionalAccessStatus":"active","isInteractive":true,"riskDetail":"string","riskLevelAggregated":"string","riskLevelDuringSignIn":"string"}]}`

## Get Secure Scores List

Retrieve a list of Secure Scores from the Microsoft Graph Security API to assess your organization's security posture.

### Endpoint

- **URL:** `/v1.0/security/secureScores`
- **Method:** `GET`

### Input

| **Argument Name**    | **Type** | **Required** | **Description**                                                                                                                                                                                                                                  |
| -------------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `parameters.filter`  | string   | Optional     | Use the `filter` query parameter to retrieve just a subset of a collection. For guidance on using `filter`, see [https://learn.microsoft.com/en-us/graph/filter-query-parameter](https://learn.microsoft.com/en-us/graph/filter-query-parameter) |
| `parameters.orderBy` | string   | Optional     | Use the `orderby` query parameter to specify the sort order of the items returned from Microsoft Graph.                                                                                                                                          |
| `parameters.top`     | number   | Optional     | Sets the page size of results.                                                                                                                                                                                                                   |

### Input Example

`{"parameters":{"filter":"string","orderBy":"string","top":123}}`

### Output

| **Parameter**                              | **Type** | **Description**                  |
| ------------------------------------------ | -------- | -------------------------------- |
| `status_code`                              | number   | HTTP status code of the response |
| `reason`                                   | string   | Response reason phrase           |
| `@odata.context`                           | string   | Response data                    |
| `@odata.nextLink`                          | string   | Response data                    |
| `value`                                    | array    | Value for the parameter          |
| `value.id`                                 | string   | Unique identifier                |
| `value.azureTenantId`                      | string   | Unique identifier                |
| `value.activeUserCount`                    | number   | Value for the parameter          |
| `value.createdDateTime`                    | string   | Value for the parameter          |
| `value.currentScore`                       | number   | Value for the parameter          |
| `value.enabledServices`                    | array    | Value for the parameter          |
| `value.licensedUserCount`                  | number   | Value for the parameter          |
| `value.maxScore`                           | number   | Value for the parameter          |
| `value.vendorInformation`                  | object   | Value for the parameter          |
| `value.vendorInformation.provider`         | string   | Unique identifier                |
| `value.vendorInformation.providerVersion`  | object   | Unique identifier                |
| `value.vendorInformation.subProvider`      | object   | Unique identifier                |
| `value.vendorInformation.vendor`           | string   | Value for the parameter          |
| `value.averageComparativeScores`           | array    | Value for the parameter          |
| `value.averageComparativeScores.file_name` | string   | Name of the resource             |
| `value.averageComparativeScores.file`      | string   | Value for the parameter          |
| `value.controlScores`                      | array    | Value for the parameter          |
| `value.controlScores.controlCategory`      | string   | Value for the parameter          |
| `value.controlScores.controlName`          | string   | Name of the resource             |
| `value.controlScores.description`          | object   | Value for the parameter          |

### Output Example

`{"@odata.context":"string","@odata.nextLink":"string","value":[{"id":"12345678-1234-1234-1234-123456789abc","azureTenantId":"string","activeUserCount":123,"createdDateTime":"string","currentScore":123,"enabledServices":[],"licensedUserCount":123,"maxScore":123,"vendorInformation":{},"averageComparativeScores":[],"controlScores":[]}]}`

## Get Secure Control Profiles

Retrieve a list of Secure Control Profiles to enhance your organization's security posture via the Microsoft Graph Security API.

### Endpoint

- **URL:** `/v1.0/security/secureScoreControlProfiles`
- **Method:** `GET`

### Input

| **Argument Name**    | **Type** | **Required** | **Description**                                                                                                                                                                                                                                  |
| -------------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `parameters.filter`  | string   | Optional     | Use the `filter` query parameter to retrieve just a subset of a collection. For guidance on using `filter`, see [https://learn.microsoft.com/en-us/graph/filter-query-parameter](https://learn.microsoft.com/en-us/graph/filter-query-parameter) |
| `parameters.orderBy` | string   | Optional     | Use the `orderby` query parameter to specify the sort order of the items returned from Microsoft Graph.                                                                                                                                          |
| `parameters.top`     | number   | Optional     | Sets the page size of results.                                                                                                                                                                                                                   |

### Input Example

`{"parameters":{"filter":"string","orderBy":"string","top":123}}`

### Output

| **Parameter**                | **Type** | **Description**                  |
| ---------------------------- | -------- | -------------------------------- |
| `status_code`                | number   | HTTP status code of the response |
| `reason`                     | string   | Response reason phrase           |
| `@odata.context`             | string   | Response data                    |
| `@odata.nextLink`            | string   | Response data                    |
| `value`                      | array    | Value for the parameter          |
| `value.id`                   | string   | Unique identifier                |
| `value.azureTenantId`        | string   | Unique identifier                |
| `value.actionType`           | string   | Type of the resource             |
| `value.actionUrl`            | string   | URL endpoint for the request     |
| `value.controlCategory`      | string   | Value for the parameter          |
| `value.title`                | string   | Value for the parameter          |
| `value.deprecated`           | boolean  | Value for the parameter          |
| `value.implementationCost`   | string   | Value for the parameter          |
| `value.lastModifiedDateTime` | object   | Value for the parameter          |
| `value.maxScore`             | number   | Value for the parameter          |
| `value.rank`                 | number   | Value for the parameter          |
| `value.remediation`          | string   | Value for the parameter          |
| `value.remediationImpact`    | string   | Value for the parameter          |
| `value.service`              | string   | Value for the parameter          |
| `value.threats`              | array    | Value for the parameter          |
| `value.threats.file_name`    | string   | Name of the resource             |
| `value.threats.file`         | string   | Value for the parameter          |
| `value.tier`                 | string   | Value for the parameter          |
| `value.userImpact`           | string   | Value for the parameter          |
| `value.vendorInformation`    | object   | Value for the parameter          |

### Output Example

`{"@odata.context":"string","@odata.nextLink":"string","value":[{"id":"12345678-1234-1234-1234-123456789abc","azureTenantId":"string","actionType":"string","actionUrl":"string","controlCategory":"string","title":"string","deprecated":true,"implementationCost":"string","lastModifiedDateTime":{},"maxScore":123,"rank":123,"remediation":"string","remediationImpact":"string","service":"string","threats":[]}]}`

## Get Secure Score

Retrieves a specified secure score from the Microsoft Graph Security API using the provided 'id'.

### Endpoint

- **URL:** `/v1.0/security/secureScores/{{id}}`
- **Method:** `GET`

### Input

| **Argument Name**    | **Type** | **Required** | **Description** |
| -------------------- | -------- | ------------ | --------------- |
| `path_parameters.id` | string   | Required     | Secure Score ID |

### Input Example

`{"path_parameters":{"id":"12345678-1234-1234-1234-123456789abc"}}`

### Output

| **Parameter**                        | **Type** | **Description**                             |
| ------------------------------------ | -------- | ------------------------------------------- |
| `status_code`                        | number   | HTTP status code of the response            |
| `reason`                             | string   | Response reason phrase                      |
| `@odata.context`                     | string   | Response data                               |
| `id`                                 | string   | Unique identifier                           |
| `azureTenantId`                      | string   | Unique identifier                           |
| `activeUserCount`                    | number   | Count value                                 |
| `createdDateTime`                    | string   | Time value                                  |
| `currentScore`                       | number   | Score value                                 |
| `enabledServices`                    | array    | Output field: enabledServices               |
| `licensedUserCount`                  | number   | Count value                                 |
| `maxScore`                           | number   | Score value                                 |
| `vendorInformation`                  | object   | Output field: vendorInformation             |
| `vendorInformation.provider`         | string   | Unique identifier                           |
| `vendorInformation.providerVersion`  | object   | Unique identifier                           |
| `vendorInformation.subProvider`      | object   | Unique identifier                           |
| `vendorInformation.vendor`           | string   | Output field: vendorInformation.vendor      |
| `averageComparativeScores`           | array    | Output field: averageComparativeScores      |
| `averageComparativeScores.file_name` | string   | Name of the resource                        |
| `averageComparativeScores.file`      | string   | Output field: averageComparativeScores.file |
| `controlScores`                      | array    | Output field: controlScores                 |
| `controlScores.controlCategory`      | string   | Output field: controlScores.controlCategory |
| `controlScores.controlName`          | string   | Name of the resource                        |
| `controlScores.description`          | string   | Output field: controlScores.description     |
| `controlScores.score`                | number   | Score value                                 |
| `controlScores.IsApplicable`         | string   | Output field: controlScores.IsApplicable    |

### Output Example

`{"@odata.context":"string","id":"12345678-1234-1234-1234-123456789abc","azureTenantId":"string","activeUserCount":123,"createdDateTime":"string","currentScore":123,"enabledServices":["string"],"licensedUserCount":123,"maxScore":123,"vendorInformation":{"provider":"string","providerVersion":{},"subProvider":{},"vendor":"string"},"averageComparativeScores":[{"file_name":"Example Name","file":"string"}],"controlScores":[{"controlCategory":"string","controlName":"Example Name","description":"string"...`

# Response Headers

| **Header**                | **Description**                                       | **Example**                   |
| ------------------------- | ----------------------------------------------------- | ----------------------------- |
| Cache-Control             | Directives for caching mechanisms                     |                               |
| client-request-id         | HTTP response header: client-request-id               |                               |
| Content-Encoding          | HTTP response header: Content-Encoding                |                               |
| Content-Type              | The media type of the resource                        | application/json              |
| Date                      | The date and time at which the message was originated | Thu, 01 Jan 2024 00:00:00 GMT |
| OData-Version             | HTTP response header: OData-Version                   |                               |
| request-id                | HTTP response header: request-id                      |                               |
| Strict-Transport-Security | HTTP response header: Strict-Transport-Security       |                               |
| Transfer-Encoding         | HTTP response header: Transfer-Encoding               |                               |
| Vary                      | HTTP response header: Vary                            |                               |
| x-ms-ags-diagnostic       | HTTP response header: x-ms-ags-diagnostic             |                               |
