MicrosoftGraphIdentityandAccess
Use the Entra ID Identity And Access integration to manage roles and members (formerly Azure Active Directory Identity And Access).
Authentication & Identity Management · Microsoft Graph Identity and Access
Details
| ID | MicrosoftGraphIdentityandAccess |
|---|---|
| Provider | Microsoft |
| Category | Authentication & Identity Management |
| From Version | 5.0.0 |
| Docker Image | demisto/crypto:1.0.0.10120494 |
| Supported Modules | Agentix Cloud Runtime Security Cloud Posture Security XSIAM EDR Cortex Cloud |
README
Use the Entra ID Identity And Access (formerly Azure Active Directory Identity And Access) integration to manage roles and members.
Configure Entra ID Identity and Access in Cortex
| Parameter | Required | Default value |
|---|---|---|
| Application ID | False | |
| Private Key | False | |
| Certificate Thumbprint | False | |
| Use Azure Managed Identities | False | |
| Azure Managed Identities Client ID | False | |
| Azure AD endpoint | False | |
| Trust any certificate (not secure) | False | |
| Use system proxy settings | False | |
| Override Microsoft Entra ID Protection risk level | True | True |
| Issue severity | False | medium |
Required Permissions
To use this integration, the following permissions are required on the Azure app.
IdentityRiskEvent.Read.AllIdentityRiskyUser.ReadWrite.AllRoleManagement.ReadWrite.DirectoryPolicy.ReadWrite.ConditionalAccessPolicy.Read.AllApplication.Read.AllAuditLog.Read.All
Commands
You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
msgraph-identity-auth-start
Run this command to start the authorization process and follow the instructions in the command results.
msgraph-identity-auth-complete
Run this command to complete the authorization process.
Should be used after running the msgraph-identity-auth-start command.
msgraph-identity-auth-reset
Run this command if for some reason you need to rerun the authentication process.
msgraph-identity-auth-test
Tests connectivity to Microsoft.
msgraph-identity-directory-roles-list
Lists the roles in the directory.
Base Command
msgraph-identity-directory-roles-list
Input
| Argument Name | Description | Required |
|---|---|---|
| limit | Maximum number of results to fetch. Default is 10. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraphIdentity.Role.deletedDateTime | Date | The time when a role was deleted. Displays only if a role was deleted. |
| MSGraphIdentity.Role.description | String | The description of the directory role. |
| MSGraphIdentity.Role.displayName | String | The display name of the directory role. |
| MSGraphIdentity.Role.id | String | The unique identifier of the directory role. |
| MSGraphIdentity.Role.roleTemplateId | String | The ID of the directory role template on which the role is based. |
Command Example
!msgraph-identity-directory-roles-list limit=1
Context Example
{
"MSGraphIdentity": {
"Role": {
"deletedDateTime": null,
"description": "Can create and manage all aspects of app registrations and enterprise apps.",
"displayName": "Application Administrator",
"id": ":id:",
"roleTemplateId": "role-template-id"
}
}
}
Human Readable Output
Directory roles
id displayName description roleTemplateId id Application Administrator Can create and manage all aspects of app registrations and enterprise apps. role-template-id
msgraph-identity-directory-role-activate
Activates a role by its template ID.
Base Command
msgraph-identity-directory-role-activate
Input
| Argument Name | Description | Required |
|---|---|---|
| role_template_id | ID of the role template to activate. Can be retrieved using the msgraph-identity-directory-roles-list command. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraphIdentity.Role.deletedDateTime | Date | The time when the role was deleted. Displays only if the role was deleted. |
| MSGraphIdentity.Role.description | String | The description of the directory role. |
| MSGraphIdentity.Role.displayName | String | The display name of the directory role. |
| MSGraphIdentity.Role.id | String | The unique identifier of the directory role. |
| MSGraphIdentity.Role.roleTemplateId | String | The ID of the directory role template on which this role is based. |
Command Example
!msgraph-identity-directory-role-activate role_template_id=role-template-id
Context Example
{
"MSGraphIdentity": {
"Role": {
"deletedDateTime": null,
"description": "Can create and manage all aspects of app registrations and enterprise apps.",
"displayName": "Application Administrator",
"id": ":id:",
"roleTemplateId": "role-template-id"
}
}
}
Human Readable Output
Role has been activated
id roleTemplateId displayName description deletedDateTime id role-template-id Application Administrator Can create and manage all aspects of app registrations and enterprise apps.
msgraph-identity-directory-role-members-list
Gets all members in a role ID.
Base Command
msgraph-identity-directory-role-members-list
Input
| Argument Name | Description | Required |
|---|---|---|
| role_id | The ID of the application for which to get its role members list. Can be retrieved using the msgraph-identity-directory-roles-list command. | Required |
| limit | The maximum number of members to fetch. Default is 10. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraphIdentity.RoleMember.user_id | String | The unique identifier of the user in the role. |
| MSGraphIdentity.RoleMember.role_id | String | The unique identifier of the role specified in the input. |
Command Example
!msgraph-identity-directory-role-members-list role_id=:role:
Context Example
{
"MSGraphIdentity": {
"RoleMember": {
"role_id": ":role:",
"user_id": [
"70585180-517a-43ea-9403-2d80b97ab19d",
"5d9ed8e5-be5c-4aaf-86f8-c133c5cd19de"
]
}
}
}
Human Readable Output
Role ‘:role:’ members
role_id user_id :role: 70585180-517a-43ea-9403-2d80b97ab19d,
5d9ed8e5-be5c-4aaf-86f8-c133c5cd19de,
“id”,
a7cedb37-c4e5-4cfb-a327-7bafb34a1f49
msgraph-identity-directory-role-member-add
Adds a user to a role.
Base Command
msgraph-identity-directory-role-member-add
Input
| Argument Name | Description | Required |
|---|---|---|
| role_id | The ID of the role to add the user to. Can be retrieved using the msgraph-identity-directory-roles-list command. | Required |
| user_id | The ID of the user to add to the role. Can be retrieved using the msgraph-identity-directory-role-members-list command. | Required |
Context Output
There is no context output for this command.
Command Example
!msgraph-identity-directory-role-member-add role_id=:role: user_id=:id:
Human Readable Output
User ID :id: has been added to role :role:
msgraph-identity-directory-role-member-remove
Removes a user from a role.
Base Command
msgraph-identity-directory-role-member-remove
Input
| Argument Name | Description | Required |
|---|---|---|
| role_id | ID of the role from which to remove the user. Can be retrieved using the msgraph-identity-directory-roles-list command. | Required |
| user_id | ID of the user to remove from the role. Can be retrieved using the msgraph-identity-directory-role-members-list command. | Required |
Context Output
There is no context output for this command.
Command Example
!msgraph-identity-directory-role-member-remove role_id=:role: user_id=:id:
Human Readable Output
User ID :id: has been removed from role :role:
msgraph-identity-ip-named-locations-create
Create an ip named location.
Base Command
msgraph-identity-ip-named-locations-create
Input
| Argument Name | Description | Required |
|---|---|---|
| ips | A comma-separated list of IP ranges to add to the named location. Each range must be in CIDR notation (IPv4 or IPv6), for example: “12.34.221.11/22,2001:0:9d38:90d6:0:0:0:0/63”. Bare IP addresses without a CIDR suffix (for example “0.0.0.0”) are rejected by Microsoft Graph. See the Microsoft Graph documentation. | Optional |
| is_trusted | Whether the IPs can be trusted. Default is false. | Optional |
| display_name | The display name for the IP location. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraph.conditionalAccess.namedIpLocations.time_created | Date | The time when an ip named location was created. |
| MSGraph.conditionalAccess.namedIpLocations.time_modified | Date | The time when an ip named location was updated. |
| MSGraph.conditionalAccess.namedIpLocations.display_name | String | The display name of the ip named location. |
| MSGraph.conditionalAccess.namedIpLocations.id | String | The unique identifier of the ip named location. |
| MSGraph.conditionalAccess.namedIpLocations.is_trusted | String | Abollean that taled if the ip named location is a trusted source. |
| MSGraph.conditionalAccess.namedIpLocations.ip_ranges | Array | List of ip ranges for the ip named location. |
msgraph-identity-ip-named-locations-get
Gets an ip named location.
Base Command
msgraph-identity-ip-named-locations-get
Input
| Argument Name | Description | Required |
|---|---|---|
| ip_id | The id of the ip named location to get. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraph.conditionalAccess.namedIpLocations.time_created | Date | The time of the ip named location creation. |
| MSGraph.conditionalAccess.namedIpLocations.time_modified | Date | The time the ip named location was last modified. |
| MSGraph.conditionalAccess.namedIpLocations.display_name | String | The ip named location display name. |
| MSGraph.conditionalAccess.namedIpLocations.id | String | The unique identifier of the ip named location. |
| MSGraph.conditionalAccess.namedIpLocations.is_trusted | String | The ip named location trust status. |
| MSGraph.conditionalAccess.namedIpLocations.ip_ranges | Array | The ip named location ip ranges. |
Command Example
!msgraph-identity-ip-named-locations-get ip_id=03f8c56f-2ffd-4699-84af-XXXXXXXCX
Human Readable Output
Ip named location ‘ID’: :ipNamedLocation:
msgraph-identity-ip-named-locations-delete
Deletes an ip named location.
Base Command
msgraph-identity-ip-named-locations-delete
Input
| Argument Name | Description | Required |
|---|---|---|
| ip_id | The id of the ip named location to delete. | Required |
Context Output
No context output
Command Example
!msgraph-identity-ip-named-locations-delete ip_id=03f8c56f-2ffd-4699-84af-XXXXXXXCX
Human Readable Output
Successfully deleted IP named location ‘X-X-X-X’
msgraph-identity-ip-named-locations-update
Updates an ip named location.
Base Command
msgraph-identity-ip-named-locations-update
msgraph-identity-ip-named-locations-update
update an ip named location by id.
Base Command
msgraph-identity-ip-named-locations-update
Input
| Argument Name | Description | Required |
|---|---|---|
| ip_id | The id of the named ip location to get from the api. | Required |
| ips | A comma-separated list of IP ranges to set on the named location. Each range must be in CIDR notation (IPv4 or IPv6), for example: “12.34.221.11/22,2001:0:9d38:90d6:0:0:0:0/63”. Bare IP addresses without a CIDR suffix (for example “0.0.0.0”) are rejected by Microsoft Graph. See the Microsoft Graph documentation. | Optional |
| is_trusted | Whether the IPs can be trusted. | Optional |
| display_name | The display name for the IP location. | Optional |
Context Output
There is no context output for this command.
Input
| Argument Name | Description | Required |
|---|---|---|
| limit | The get request results limit. | Optional |
| page | The page to get the data from. | Optional |
| odata_query | An odata query to send to the api. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraph.conditionalAccess.namedIpLocations.ip_named_locations | Array | List of ip named locations. |
Command Example
### msgraph-identity-protection-risks-list
***
Retrieve the properties of a collection of riskDetection objects.
#### Required Permissions
`IdentityRiskEvent.Read.All`
#### Base Command
`msgraph-identity-protection-risks-list`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| odata_query | An odata query to send to the api. | Optional |
| limit | Number of results to provide. Default is 50. | Optional |
#### Context Output
| **Path** | **Type** | **Description** |
| --- | --- | --- |
| MSGraph.identityProtection.risks.id | string | Unique ID of the risk detection. |
| MSGraph.identityProtection.risks.requestId | string | The ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in. |
| MSGraph.identityProtection.risks.correlationId | string | Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in. |
| MSGraph.identityProtection.risks.riskEventType | string | The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. |
| MSGraph.identityProtection.risks.riskType | string | Deprecated. Use riskEventType instead. List of risk event types. |
| MSGraph.identityProtection.risks.riskLevel | string | Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. |
| MSGraph.identityProtection.risks.riskstate | string | State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.risks.riskDetail | string | Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.risks.source | string | Source of the risk detection. For example, `activeDirectory`. |
| MSGraph.identityProtection.risks.detectionTimingType | string | Timing of the detected risk \(real-time/offline\). The possible values are notDefined, realtime, nearRealtime, offline, and unknownFutureValue. |
| MSGraph.identityProtection.risks.activity | string | Indicates the activity type the detected risk is linked to. The possible values are signin, user, and unknownFutureValue. |
| MSGraph.identityProtection.risks.tokenIssuerType | string | Indicates the type of token issuer for the detected sign-in risk. The possible values are AzureAD, ADFederationServices, and unknownFutureValue. |
| MSGraph.identityProtection.risks.ipAddress | string | Provides the IP address of the client from where the risk occurred. |
| MSGraph.identityProtection.risks.location.city | string | City of the sign-in. |
| MSGraph.identityProtection.risks.location.countryOrRegion | string | Country or region of the sign-in. |
| MSGraph.identityProtection.risks.location.geoCoordinates.latitude | string | Latitude of the sign-in. |
| MSGraph.identityProtection.risks.location.geoCoordinates.longitude | string | Longitude of the sign-in. |
| MSGraph.identityProtection.risks.location.state | string | State of the sign-in. |
| MSGraph.identityProtection.risks.activityDateTime | string | Date and time that the risky activity occurred. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. |
| MSGraph.identityProtection.risks.detectedDateTime | string | Date and time that the risk was detected. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. |
| MSGraph.identityProtection.risks.lastUpdatedDateTime | string | Date and time that the risk detection was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. |
| MSGraph.identityProtection.risks.userId | string | Unique ID of the user. |
| MSGraph.identityProtection.risks.userDisplayName | string | Risky user display name. |
| MSGraph.identityProtection.risks.userPrincipalName | string | Risky user principal name. |
| MSGraph.identityProtection.risks.additionalInfo | string | Additional information associated with the risk detection in JSON format. |
#### Command Example
```!msgraph-identity-protection-risks-list```
#### Human Readable Output
>### risks (6 results)
>
>|User ID|User Principal Name|User Display Name|IP Address|Detected Date Time|Activity|Activity Date Time|Additional Info|Correlation ID|Detection Timing Type|ID|Last Updated Date Time|Location|Request ID|Risk Detail|Risk Event Type|Risk Level|Risk State|Risk Type|Source|Token Issuer Type|
>|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 1.1.1.1 | 2021-04-25T09:00:40.7780969Z | signin | 2021-04-25T09:00:40.7780969Z | [{"Key":"userAgent","Value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36"}] | 271ac223-695b-418e-85b3-7809070ee33e | realtime | 86a45315157fb75c3a6e0936ef854c139df99bdfbde4bd7e7f1bc685c3638908 | 2021-05-23T08:20:41.9161522Z | city: San Jose<br/>state: California<br/>countryOrRegion: US<br/>geoCoordinates: {"latitude": 37.33053, "longitude": -121.8382} | 86b6e4a1-25cb-40c7-af2b-9e79c6106000 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 2.2.2.2 | 2021-04-28T11:40:11.333738Z | signin | 2021-04-28T11:40:11.333738Z | [{"Key":"userAgent","Value":"python-requests/2.18.4"}] | 6f74b0f4-dabc-49af-aa87-3aaba042baba | realtime | c0e94938cddbb849ef64dbb6a98189ab3d93cdec4c4f95923ac935a91486def2 | 2021-05-23T08:20:29.027631Z | city: Frankfurt Am Main<br/>state: Hessen<br/>countryOrRegion: DE<br/>geoCoordinates: {"latitude": 50.1109, "longitude": 8.6821} | 64b01b65-25fa-4811-b4cd-411c9accc000 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 3.3.3.3 | 2021-04-29T08:03:23.5302796Z | signin | 2021-04-29T08:03:23.5302796Z | [{"Key":"userAgent","Value":"python-requests/2.18.4"}] | 069f7e67-3692-4191-a84d-14ab0aa1baba | realtime | c197aea67197503695f6dbddd9af2b3adcd1e8571f8381e96707ac71162d1cdf | 2021-05-23T08:20:42.1561664Z | city: Paris<br/>state: Paris<br/>countryOrRegion: FR<br/>geoCoordinates: {"latitude": 48.86023, "longitude": 2.34107} | 22e0bc21-61f2-4661-aa0b-afe40985e100 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 5.5.5.5 | 2021-05-07T06:00:45.0034244Z | signin | 2021-05-07T06:00:45.0034244Z | [{"Key":"userAgent","Value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"}] | dec7bb21-5a9b-45ff-84d6-b1538da801bc | realtime | 8b29fae724e168a32412e2bdc630540588df7558ac647772c36d957656b6e156 | 2021-05-23T08:20:42.2461705Z | city: Tanglin<br/>state: South West<br/>countryOrRegion: SG<br/>geoCoordinates: {"latitude": 1.32, "longitude": 103.8198} | 5fd28f4a-b172-4aa6-92b2-883832460400 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 4.4.4.4 | 2021-05-09T09:41:24.9769131Z | signin | 2021-05-09T09:41:24.9769131Z | [{"Key":"userAgent","Value":"BAV2ROPC"}] | f9dbd73b-8e7f-4bcd-93a7-2a7c1d4cbaba | realtime | dbc1272033adf3a2e960ce438a671de91b4b1b917e250ec575492156eb64f6eb | 2021-05-23T08:20:29.0726385Z | city: Stockholm<br/>state: Stockholms Lan<br/>countryOrRegion: SE<br/>geoCoordinates: {"latitude": 59.31512, "longitude": 18.05132} | d6e81927-c8e1-40f4-ad38-aa4d5408aa00 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | 1.2.3.4 | 2021-05-11T07:15:33.6885155Z | signin | 2021-05-11T07:15:33.6885155Z | [{"Key":"userAgent","Value":"python-requests/2.25.1"}] | 5bb85e1f-1933-4698-831d-fbeb40aebaba | realtime | 969476f4d6d20717dfaea9f2df92945f9d736240d53b4187b50579003bf2d011 | 2021-05-23T08:20:42.2911741Z | city: Dublin<br/>state: Dublin<br/>countryOrRegion: IE<br/>geoCoordinates: {"latitude": 53.35389, "longitude": -6.24333} | 7b7d098c-edcc-4139-b171-fc64c38d0d00 | userPerformedSecuredPasswordChange | unfamiliarFeatures | low | remediated | unfamiliarFeatures | IdentityProtection | AzureAD |
### msgraph-identity-protection-risky-user-list
***
Retrieves the properties of a collection of riskDetection objects.
#### Required Permissions
`IdentityRiskyUser.Read.All`
#### Base Command
`msgraph-identity-protection-risky-user-list`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| updated_time | The time elapsed since the risky user was last updated, formatted as `<number> <time unit>`, e.g., `12 hours` or `7 days`. | Optional |
| risk_level | Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFeatureValue. | Optional |
| risk_state | State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. | Optional |
| risk_detail | Details of the detected risk. The possible values are none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. | Optional |
| filter_expression | A custom query in OData syntax. Using this overrides all arguments, except for next_link. For more details, see https://docs.microsoft.com/en-us/graph/query-parameters. | Optional |
| limit | Number of results to provide. Default is 50. | Optional |
| next_link | A link that specifies a starting point for subsequent calls. Using this argument overrides all other arguments. | Optional |
| user_name | Risky user principal name. | Optional |
#### Context Output
| **Path** | **Type** | **Description** |
| --- | --- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| MSGraph.identityProtection.risky-users.id | string | Unique ID of the risky user. |
| MSGraph.identityProtection.risky-users.isDeleted | Boolean | Indicates whether a user is delted |
| MSGraph.identityProtection.risky-users.isProcessing | Boolean | Indicates whether a user's risky state is being processed by the backend. |
| MSGraph.identityProtection.risky-users.riskLastUpdatedDateTime | DateTime | The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. |
| MSGraph.identityProtection.risky-users.riskLevel | string | Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. |
| MSGraph.identityProtection.risky-users.riskstate | string | State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.risky-users.riskDetail | string | Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.risky-users.userDisplayName | string | Risky user display name. |
| MSGraph.identityProtection.risky-users.userPrincipalName | string | Risky user principal name. |
#### Command Example
```!msgraph-identity-protection-risky-user-list```
#### Human Readable Output
>### Risky Users (1 result)
>
>|User Principal Name|User Display Name|ID|Is Deleted|Is Processing|Risk Detail|Risk Last Updated Date Time|Risk Level|Risk State|
>|---|---|---|---|---|---|---|---|---|
>| jdoe@example.com | John Doe | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | false | false | none | 2021-07-21T17:56:28.958147Z | medium | atRisk |
### msgraph-identity-protection-risky-user-history-list
***
Gets the risk history of a riskyUser resource.
#### Required Permissions
`IdentityRiskyUser.Read.All`
`IdentityRiskyUser.ReadWrite.All`
#### Base Command
`msgraph-identity-protection-risky-user-history-list`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| user_id | Unique ID of the user. | Required |
| limit | Number of results to provide. Default is 50. | Optional |
| filter_expression | A custom query in OData syntax. Using this overrides all arguments, except for next_link. For more details, see https://docs.microsoft.com/en-us/graph/query-parameters. | Optional |
| next_link | A link that specifies a starting point for subsequent calls. Using this argument overrides all other arguments. | Optional |
#### Context Output
| **Path** | **Type** | **Description** |
| --- | --- | --- |
| MSGraph.identityProtection.RiskyUserHistory.id | string | Unique ID of the risky user. |
| MSGraph.identityProtection.RiskyUserHistory.isDeleted | Boolean | Indicates whether the user is deleted. |
| MSGraph.identityProtection.RiskyUserHistory.isProcessing | Boolean | Indicates whether a user's risky state is being processed by the backend. |
| MSGraph.identityProtection.RiskyUserHistory.riskLastUpdatedDateTime | DateTime | The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. |
| MSGraph.identityProtection.RiskyUserHistory.riskLevel | string | Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. |
| MSGraph.identityProtection.RiskyUserHistory.riskstate | string | State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.RiskyUserHistory.riskDetail | string | Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. |
| MSGraph.identityProtection.RiskyUserHistory.userDisplayName | string | Risky user display name. |
| MSGraph.identityProtection.RiskyUserHistory.userPrincipalName | string | Risky user principal name. |
#### Command Example
```!msgraph-identity-protection-risky-user-history-list user_id="3fa9f28b-eb0e-463a-ba7b-8089fe9991e2"```
#### Human Readable Output
>### Risky User History For 3Fa9F28B-Eb0E-463A-Ba7B-8089Fe9991E2 (12 results)
>
>|User ID|User Principal Name|User Display Name|Activity|ID|Initiated By|Is Deleted|Is Processing|Risk Detail|Risk Last Updated Date Time|Risk Level|Risk State|
>|---|---|---|---|---|---|---|---|---|---|---|---|
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637571860258849619 | | false | false | none | 2021-05-21T09:27:05.8849619Z | high | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637579558855706894 | | false | false | none | 2021-05-30T07:18:05.5706894Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637581817194185440 | | false | false | none | 2021-06-01T22:01:59.418544Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637617844902084332 | | false | false | none | 2021-07-13T14:48:10.2084332Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures,<br/>mcasImpossibleTravel<br/>riskEventTypes: unfamiliarFeatures,<br/>mcasImpossibleTravel<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637617905007494900 | | false | false | none | 2021-07-13T16:28:20.74949Z | medium | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | | false | false | none | 2021-07-21T17:56:28.958147Z | medium | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: <br/>riskEventTypes: <br/>detail: userPerformedSecuredPasswordChange | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637573546620000000 | | false | false | userPerformedSecuredPasswordChange | 2021-05-23T08:17:42Z | none | remediated |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: mcasImpossibleTravel<br/>riskEventTypes: mcasImpossibleTravel<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637580439207803793 | | false | false | none | 2021-05-31T07:45:20.7803793Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637588246283692301 | | false | false | none | 2021-06-09T08:37:08.3692301Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: mcasImpossibleTravel<br/>riskEventTypes: mcasImpossibleTravel<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637597636382264783 | | false | false | none | 2021-06-20T05:27:18.2264783Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: unfamiliarFeatures<br/>riskEventTypes: unfamiliarFeatures<br/>detail: null | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637600753627454017 | | false | false | none | 2021-06-23T20:02:42.7454017Z | low | atRisk |
>| 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | jdoe@example.com | John Doe | eventTypes: <br/>riskEventTypes: <br/>detail: adminDismissedAllRiskForUser | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2637623861161706539 | 3fa9f28b-eb0e-463a-ba7b-8089fe9991e2 | false | false | adminDismissedAllRiskForUser | 2021-07-20T13:55:16.1706539Z | none | dismissed |
### msgraph-identity-protection-risky-user-confirm-compromised
***
Confirms one or more riskyUser objects as compromised. This action sets the targeted user's risk level to high.
#### Required Permissions
`IdentityRiskyUser.ReadWrite.All`
#### Base Command
`msgraph-identity-protection-risky-user-confirm-compromised`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| user_ids | One or more user IDs, comma-separated. | Required |
#### Context Output
There is no context output for this command.
#### Command Example
```!MSGraph.identityProtection-risky-user-confirm-compromised user_ids="3fa9f28b-eb0e-463a-ba7b-8089fe9991e3"```
#### Human Readable Output
>✅ Confirmed successfully.
### msgraph-identity-protection-risky-user-dismiss
***
Dismisses the risk of one or more riskyUser objects. This action sets the targeted user's risk level to none.
#### Required Permissions
`IdentityRiskyUser.ReadWrite.All`
#### Base Command
`msgraph-identity-protection-risky-user-dismiss`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| user_ids | One or more user IDs, comma-separated. | Required |
#### Context Output
There is no context output for this command.
#### Command Example
```!c user_ids="3fa9f28b-eb0e-463a-ba7b-8089fe9991e2"```
#### Human Readable Output
>✅ Dismissed successfully.
>
### msgraph-identity-ca-policy-create
***
Creates a Conditional Access policy.
#### Base Command
`msgraph-identity-ca-policy-create`
#### Required Permissions
`Permission type : Application or Delegated`
`Permissions:Policy.Read.All`
`Policy.ReadWrite.ConditionalAccess`
#### Input
| **Argument Name** | **Description** | **Required** |
| --- | --- | --- |
| policy | JSON object containing the policy details. Ensure a valid policy object is passed. <br/>. | Optional |
| policy_name | The name of the Conditional Access policy to be created. Required if policy argument not present. | Optional |
| state | The state of the policy.<br/>Required if policy argument not present.<br/>. Possible values are: enabled, disabled. | Optional |
| sign_in_risk_levels | List of sign-in risk levels for the policy. Options: `low`, `medium`, `high`, `none`.<br/>Required if policy argument not present.<br/>. | Optional |
| user_risk_levels | List of user risk levels for the policy. Options: `low`, `medium`, `high`.<br/>Required if policy argument not present.<br/>. | Optional |
| client_app_types | List of types of client apps to be included in the policy. Options: `all`, `browser`, `mobileAppsAndDesktopClients`, `exchangeActiveSync`, `easSupported`, `other`.<br/>Required if policy argument not present.<br/>. | Optional |
| include_applications | List of application IDs to be included in the policy. If no applications are defined, `includeApplications: 'none'` will be used.<br/>. | Optional |
| exclude_applications | List of application IDs to be excluded from the policy.<br/>. | Optional |
| include_user_actions | List of user actions to be included in the policy.<br/>. Possible values are: vrn:user:registersecurityinfo, urn:user:registerdevice. | Optional |
| include_users | List of user IDs to be included in the policy. Options: None, All, GuestsOrExternalUsers.<br/>. | Optional |
| exclude_users | List of user IDs to be excluded from the policy.<br/>. | Optional |
| include_groups | List of group IDs to be included in the policy.<br/>. | Optional |
| exclude_groups | List of group IDs to be excluded from the policy.<br/>. | Optional |
| include_roles | List of role IDs to be included in the policy.<br/>. | Optional |
| exclude_roles | List of role IDs to be excluded from the policy.<br/>. | Optional |
| include_platforms | List of platforms to be included in the policy. Options: `Android`, `iOS`, `Windows`, `windowsPhone`, `macOS`, `Linux`, `all`.<br/>. | Optional |
| exclude_platforms | List of platforms to be excluded from the policy.<br/>. | Optional |
| include_locations | List of location IDs to be included in the policy. Options: `All`, `AllTrusted`, or a list of specific location IDs.<br/>. | Optional |
| exclude_locations | List of location IDs to be excluded from the policy.<br/>. | Optional |
| grant_control_operator | The operator for grant control.<br/>Default value is 'AND'. Possible values are: AND, OR. Default is AND. | Optional |
| grant_control_enforcement | List of built-in controls for the policy. Options: `block`, `mfa`, `compliantDevice`, `domainJoinedDevice`, `approvedApplication`, `compliantApplication`, `passwordChange`.<br/>Default value is 'mfa'<br/>Special considerations when using `passwordChange`: <br/>- `passwordChange` must be accompanied by `mfa` using an `AND` operator.<br/>- `passwordChange` must be used with `userRiskLevels`.<br/>- The policy should target all applications and not exclude any.<br/>. Default is mfa. | Optional |
#### Context Output
| **Path** | **Type** | **Description** |
| --- | --- | --- |
| MSGraphIdentity.ConditionalAccessPolicy.id | string | The unique ID of the Conditional Access policy. |
| MSGraphIdentity.ConditionalAccessPolicy.displayName | string | The display name of the Conditional Access policy. |
| MSGraphIdentity.ConditionalAccessPolicy.createdDateTime | date | The date and time the policy was created. |
| MSGraphIdentity.ConditionalAccessPolicy.modifiedDateTime | date | The date and time the policy was last modified. |
| MSGraphIdentity.ConditionalAccessPolicy.state | string | The state of the policy \(enabled/disabled\). |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.signInRiskLevels | list | List of sign-in risk levels this policy applies to. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.clientAppTypes | list | Client application types this policy targets. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeApplications | list | List of applications included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.excludeApplications | list | List of applications excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeUserActions | list | User actions included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeUsers | list | User IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeUsers | list | User IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeGroups | list | Group IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeGroups | list | Group IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeRoles | list | Role IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeRoles | list | Role IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.includePlatforms | list | Platforms included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.excludePlatforms | list | Platforms excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.includeLocations | list | Location IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.excludeLocations | list | Location IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.operator | string | Logical operator used in the grant controls \(e.g., AND, OR\). |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.builtInControls | list | List of built-in access controls \(e.g., MFA, compliant device\). |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.customAuthenticationFactors | list | Custom authentication factors used in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.termsOfUse | list | List of Terms of Use policy IDs applied. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.cloudAppSecurityType | string | The type of cloud app security control. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.isEnabled | boolean | Whether cloud app security is enabled. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.value | number | Sign-in frequency value. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.type | string | Unit of the sign-in frequency \(e.g., hours, days\). |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.isEnabled | boolean | Whether sign-in frequency control is enabled. |
#### Command example
```!msgraph-identity-ca-policy-create policy_name="test" state=disabled client_app_types="all" include_users="All" include_applications="none" include_platforms="iOS" grant_control_enforcement="block" grant_control_operator="AND" sign_in_risk_levels="low" user_risk_levels="low"```
#### Context Example
```json
{
"MSGraphIdentity": {
"ConditionalAccessPolicy": {
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/conditionalAccess/policies/$entity",
"conditions": {
"applications": {
"applicationFilter": null,
"excludeApplications": [],
"includeApplications": [
"None"
],
"includeAuthenticationContextClassReferences": [],
"includeUserActions": []
},
"authenticationFlows": null,
"clientAppTypes": [
"all"
],
"clientApplications": null,
"devices": null,
"insiderRiskLevels": null,
"locations": null,
"platforms": {
"excludePlatforms": [],
"includePlatforms": [
"iOS"
]
},
"servicePrincipalRiskLevels": [],
"signInRiskLevels": [
"low"
],
"userRiskLevels": [
"low"
],
"users": {
"excludeGroups": [],
"excludeGuestsOrExternalUsers": null,
"excludeRoles": [],
"excludeUsers": [],
"includeGroups": [],
"includeGuestsOrExternalUsers": null,
"includeRoles": [],
"includeUsers": [
"All"
]
}
},
"createdDateTime": "2025-05-15T14:11:02.0356168Z",
"displayName": "test",
"grantControls": {
"authenticationStrength": null,
"authenticationStrength@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/conditionalAccess/policies('0a31b9ab-be62-4f1b-b4a7-523940eb9f54')/grantControls/authenticationStrength/$entity",
"builtInControls": [
"block"
],
"customAuthenticationFactors": [],
"operator": "OR",
"termsOfUse": []
},
"id": "0a31b9ab-be62-4f1b-b4a7-523940eb9f54",
"modifiedDateTime": null,
"sessionControls": null,
"state": "disabled",
"templateId": null
}
}
}
Human Readable Output
Conditional Access policy 0a31b9ab-be62-4f1b-b4a7-523940eb9f54 was successfully created.
msgraph-identity-ca-policy-update
Updates a Conditional Access policy. By default, the command attempts to append values to existing list-based fields (e.g., include_users, include_groups, etc.). If a field does not support appending (i.e., it’s not a list), the command overrides the existing value with the new one.
Base Command
msgraph-identity-ca-policy-update
Required Permissions
Permission type : Application or Delegated
Permissions:Policy.Read.All
Policy.ReadWrite.ConditionalAccess
Input
| Argument Name | Description | Required |
|---|---|---|
| policy_id | Required. The ID of the Conditional Access policy to update. | Required |
| policy | JSON object containing the policy details. Ensure a valid policy object is passed. If no policy argument is provided,other required arguments like policy_name, state, etc. must be included.. |
Optional |
| policy_name | The name of the Conditional Access policy to be created. | Optional |
| state | The state of the policy. . Possible values are: enabled, disabled. |
Optional |
| sign_in_risk_levels | List of sign-in risk levels for the policy. Options: low, medium, high, none.. |
Optional |
| user_risk_levels | List of user risk levels for the policy. Options: low, medium, high.. |
Optional |
| client_app_types | Types of client apps to be included in the policy. Options: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other.. |
Optional |
| include_applications | List of application IDs to be included in the policy. If no applications are defined, includeApplications: 'none' will be used.. |
Optional |
| exclude_applications | List of application IDs to be excluded from the policy. . |
Optional |
| include_user_actions | List of user actions to be included in the policy. Options: vrn:user:registersecurityinfo, urn:user:registerdevice.. Possible values are: vrn:user:registersecurityinfo, urn:user:registerdevice. |
Optional |
| include_users | List of user IDs to be included in the policy. Options: None, All, GuestsOrExternalUsers. . |
Optional |
| exclude_users | List of user IDs to be excluded from the policy. . |
Optional |
| include_groups | List of group IDs to be included in the policy. . |
Optional |
| exclude_groups | List of group IDs to be excluded from the policy. . |
Optional |
| include_roles | List of role IDs to be included in the policy. . |
Optional |
| exclude_roles | List of role IDs to be excluded from the policy. . |
Optional |
| include_platforms | List of platforms to be included in the policy. Options: Android, iOS, Windows, windowsPhone, macOS, Linux, all.. |
Optional |
| exclude_platforms | List of platforms to be excluded from the policy. . |
Optional |
| include_locations | List of location IDs to be included in the policy. Options: All, AllTrusted, or a list of specific location IDs.. |
Optional |
| exclude_locations | List of location IDs to be excluded from the policy. . |
Optional |
| grant_control_operator | The operator for grant control. . Possible values are: AND, OR. |
Optional |
| grant_control_enforcement | List of built-in controls for the policy. Options: block, mfa, compliantDevice, domainJoinedDevice, approvedApplication, compliantApplication, passwordChange.Special considerations when using passwordChange: - passwordChange must be accompanied by mfa using an AND operator.- passwordChange must be used with userRiskLevels.- The policy should target all applications and not exclude any. . |
Optional |
| update_action | Defines how to update fields in the policy. - override (default): Replaces existing values.- append: Adds new values to existing ones without removing them.. Possible values are: override, append. |
Optional |
Context Output
There is no context output for this command.
Command example
!msgraph-identity-ca-policy-update policy_id="58c3a52b-190f-4be3-a19c-a4d03f8ce684" state="disabled"
Human Readable Output
Conditional Access policy 58c3a52b-190f-4be3-a19c-a4d03f8ce684 was successfully updated.
Note:
Fieldstateis not a list - overriding the value.
msgraph-identity-ca-policies-list
Retrieve one or all Conditional Access policies from Microsoft Graph API.
Base Command
msgraph-identity-ca-policies-list
Required Permissions
Permission type : Application or Delegated
Permissions:Policy.Read.All
Input
| Argument Name | Description | Required |
|---|---|---|
| policy_id | Optional. The ID of the Conditional Access policy to retrieve. If not provided, all policies will be returned. | Optional |
| filter | Optional. The OData filter query to retrieve specific Conditional Access policies. | Optional |
| limit | Optional. The maximum number of Conditional Access policies to return. Applicable only when all_results is set to false. | Optional |
| all_results | Optional. Whether to retrieve all results without applying the ‘limit’. Default value is true. Possible values are: true, false. | Optional |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraphIdentity.ConditionalAccessPolicy.id | string | The unique ID of the Conditional Access policy. |
| MSGraphIdentity.ConditionalAccessPolicy.displayName | string | The display name of the Conditional Access policy. |
| MSGraphIdentity.ConditionalAccessPolicy.createdDateTime | date | The date and time the policy was created. |
| MSGraphIdentity.ConditionalAccessPolicy.modifiedDateTime | date | The date and time the policy was last modified. |
| MSGraphIdentity.ConditionalAccessPolicy.state | string | The state of the policy (enabled/disabled). |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.signInRiskLevels | list | List of sign-in risk levels this policy applies to. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.clientAppTypes | list | Client application types this policy targets. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeApplications | list | List of applications included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.excludeApplications | list | List of applications excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeUserActions | list | User actions included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeUsers | list | User IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeUsers | list | User IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeGroups | list | Group IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeGroups | list | Group IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeRoles | list | Role IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeRoles | list | Role IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.includePlatforms | list | Platforms included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.excludePlatforms | list | Platforms excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.includeLocations | list | Location IDs included in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.excludeLocations | list | Location IDs excluded from the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.operator | string | Logical operator used in the grant controls (e.g., AND, OR). |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.builtInControls | list | List of built-in access controls (e.g., MFA, compliant device). |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.customAuthenticationFactors | list | Custom authentication factors used in the policy. |
| MSGraphIdentity.ConditionalAccessPolicy.grantControls.termsOfUse | list | List of Terms of Use policy IDs applied. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.cloudAppSecurityType | string | The type of cloud app security control. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.isEnabled | boolean | Whether cloud app security is enabled. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.value | number | Sign-in frequency value. |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.type | string | Unit of the sign-in frequency (e.g., hours, days). |
| MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.isEnabled | boolean | Whether sign-in frequency control is enabled. |
Command example
!msgraph-identity-ca-policies-list limit=2 all_results=false
Context Example
{
"MSGraphIdentity": {
"ConditionalAccessPolicy": [
{
"conditions": {
"applications": {
"applicationFilter": null,
"excludeApplications": [],
"includeApplications": [
"Office365"
],
"includeAuthenticationContextClassReferences": [],
"includeUserActions": []
},
"authenticationFlows": null,
"clientAppTypes": [
"all"
],
"clientApplications": null,
"devices": null,
"insiderRiskLevels": null,
"locations": {
"excludeLocations": [],
"includeLocations": [
"All"
]
},
"platforms": null,
"servicePrincipalRiskLevels": [],
"signInRiskLevels": [],
"userRiskLevels": [],
"users": {
"excludeGroups": [],
"excludeGuestsOrExternalUsers": null,
"excludeRoles": [],
"excludeUsers": [],
"includeGroups": [],
"includeGuestsOrExternalUsers": null,
"includeRoles": [],
"includeUsers": [
"d629c370-61c9-4851-8f3d-80ea6c07655f"
]
}
},
"createdDateTime": "2025-02-12T11:58:25.6358652Z",
"displayName": "block office test policy",
"grantControls": {
"authenticationStrength": null,
"authenticationStrength@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/conditionalAccess/policies('24d40f2e-1998-4bf1-96ff-db841b6d51e6')/grantControls/authenticationStrength/$entity",
"builtInControls": [
"mfa"
],
"customAuthenticationFactors": [],
"operator": "OR",
"termsOfUse": []
},
"id": "24d40f2e-1998-4bf1-96ff-db841b6d51e6",
"modifiedDateTime": "2025-02-13T06:51:23.575868Z",
"sessionControls": null,
"state": "disabled",
"templateId": null
},
{
"conditions": {
"applications": {
"applicationFilter": null,
"excludeApplications": [],
"includeApplications": [
"All"
],
"includeAuthenticationContextClassReferences": [],
"includeUserActions": []
},
"authenticationFlows": null,
"clientAppTypes": [
"all"
],
"clientApplications": null,
"devices": null,
"insiderRiskLevels": null,
"locations": null,
"platforms": null,
"servicePrincipalRiskLevels": [],
"signInRiskLevels": [
"high"
],
"userRiskLevels": [],
"users": {
"excludeGroups": [],
"excludeGuestsOrExternalUsers": null,
"excludeRoles": [],
"excludeUsers": [],
"includeGroups": [
"66b0b57b-25c5-4ef3-9d4f-b7bdea0e8794"
],
"includeGuestsOrExternalUsers": null,
"includeRoles": [],
"includeUsers": []
}
},
"createdDateTime": "2025-02-12T22:01:32.2461656Z",
"displayName": "Microsoft-managed: Multifactor authentication and reauthentication for risky sign-ins",
"grantControls": {
"authenticationStrength": null,
"authenticationStrength@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/conditionalAccess/policies('f1b54946-07ee-4c43-a78a-3f33ee248495')/grantControls/authenticationStrength/$entity",
"builtInControls": [
"mfa"
],
"customAuthenticationFactors": [],
"operator": "OR",
"termsOfUse": []
},
"id": "f1b54946-07ee-4c43-a78a-3f33ee248495",
"modifiedDateTime": "2025-05-14T20:18:55.0820676Z",
"sessionControls": {
"applicationEnforcedRestrictions": null,
"cloudAppSecurity": null,
"disableResilienceDefaults": null,
"persistentBrowser": null,
"signInFrequency": {
"authenticationType": "primaryAndSecondaryAuthentication",
"frequencyInterval": "everyTime",
"isEnabled": true,
"type": null,
"value": null
}
},
"state": "enabled",
"templateId": "4200930c-0da2-4e33-ca01-000000000007"
}
]
}
}
Human Readable Output
Conditional Access Policies
CreatedDateTime DisplayName ID IncludeUsers State 2025-02-12T11:58:25.6358652Z block office test policy 24d40f2e-1998-4bf1-96ff-db841b6d51e6 d629c370-61c9-4851-8f3d-80ea6c07655f disabled 2025-02-12T22:01:32.2461656Z Microsoft-managed: Multifactor authentication and reauthentication for risky sign-ins f1b54946-07ee-4c43-a78a-3f33ee248495 enabled
msgraph-identity-ca-policy-delete
Delete specific Conditional Access policy by ID.
Base Command
msgraph-identity-ca-policy-delete
Required Permissions
Permission type : Application or Delegated
Permissions:Policy.Read.All
Policy.ReadWrite.ConditionalAccess
Input
| Argument Name | Description | Required |
|---|---|---|
| policy_id | Required. The ID of the Conditional Access policy to delete. | Required |
Context Output
There is no context output for this command.
Command example
!msgraph-identity-ca-policy-delete policy_id="fc271abb-e52c-4c40-aff9-5fd1e534a58d"
Human Readable Output
Conditional Access policy fc271abb-e52c-4c40-aff9-5fd1e534a58d was successfully deleted.
msgraph-identity-audit-signin-event-get
Retrieve Microsoft Entra ID sign-in event.
Base Command
msgraph-identity-audit-signin-event-get
Required Permissions
Permission type : Application or Delegated
Permissions:AuditLog.Read.All
Input
| Argument Name | Description | Required |
msgraph-identity-audit-signin-event-get
Retrieve Microsoft Entra ID sign-in event.
Base Command
msgraph-identity-audit-signin-event-get
Input
| Argument Name | Description | Required |
|---|---|---|
| id | Unique ID representing the sign-in event. | Required |
Context Output
| Path | Type | Description |
|---|---|---|
| MSGraphIdentity.AuditLog.signIns.appDisplayName | string | App name displayed in the Microsoft Entra admin center. |
| MSGraphIdentity.AuditLog.signIns.appId | string | Unique GUID that represents the app ID in the Microsoft Entra ID. |
| MSGraphIdentity.AuditLog.signIns.appliedConditionalAccessPolicies | array | List of conditional access policies that the corresponding sign-in activity triggers. |
| MSGraphIdentity.AuditLog.signIns.clientAppUsed | string | Identifies the client used for the sign-in activity. Modern authentication clients include Browser, modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. |
| MSGraphIdentity.AuditLog.signIns.conditionalAccessStatus | string | Reports status of activated conditional access policy. Possible values are success, failure, notApplied, and unknownFutureValue. |
| MSGraphIdentity.AuditLog.signIns.correlationId | string | The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. |
| MSGraphIdentity.AuditLog.signIns.createdDateTime | string | Date and time (UTC) the sign-in was initiated. |
| MSGraphIdentity.AuditLog.signIns.deviceDetail | object | Device information from where the sign-in occurred; includes device ID, operating system, and browser. |
| MSGraphIdentity.AuditLog.signIns.id | string | Unique ID representing the sign-in activity. |
| MSGraphIdentity.AuditLog.signIns.ipAddress | string | IP address of the client used to sign in. |
| MSGraphIdentity.AuditLog.signIns.isInteractive | boolean | Indicates whether a sign-in is interactive. |
| MSGraphIdentity.AuditLog.signIns.location | object | Provides the city, state, and country code where the sign-in originated. |
| MSGraphIdentity.AuditLog.signIns.resourceDisplayName | string | Name of the resource the user signed into. |
| MSGraphIdentity.AuditLog.signIns.riskDetail | array | The reason behind a specific state of a risky user, sign-in, or a risk event. The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. |
| MSGraphIdentity.AuditLog.signIns.riskEventTypes_v2 | array | The list of risk event types associated with the sign-in. |
| MSGraphIdentity.AuditLog.signIns.riskLevelAggregated | string | Aggregated risk level. The value hidden means the user or sign-in wasn’t enabled for Microsoft Entra ID Protection. |
| MSGraphIdentity.AuditLog.signIns.riskLevelDuringSignIn | string | Risk level during sign-in. The value hidden means the user or sign-in wasn’t enabled for Microsoft Entra ID Protection. |
| MSGraphIdentity.AuditLog.signIns.riskState | string | Reports status of the risky user, sign-in, or a risk event. |
| MSGraphIdentity.AuditLog.signIns.status | object | Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). |
| MSGraphIdentity.AuditLog.signIns.userDisplayName | string | Display name of the user that initiated the sign-in. |
| MSGraphIdentity.AuditLog.signIns.userId | string | ID of the user that initiated the sign-in. |
| MSGraphIdentity.AuditLog.signIns.userPrincipalName | string | User principal name of the user that initiated the sign-in. This value is always in lowercase. |
Configuration parameters
app_id— Application ID (Client ID for Client credentials mode)tenant_id— Tenant ID (required for Client Credentials mode)credentials—creds_certificate— Certificate Thumbprintuse_managed_identities— Use Azure Managed Identitiesmanaged_identities_client_id—azure_ad_endpoint— Azure AD endpointincidentType— Incident typeclient_credentials— Use Client Credentials Authorization Flowinsecure— Trust any certificate (not secure)proxy— Use system proxy settingsisFetch— Fetch incidentsfirst_fetch— First Fetch Time Intervalmax_fetch— Max Fetch Incidents ReturnedincidentFetchInterval— Incidents Fetch Intervalalerts_to_fetch— Alerts to Fetchfetch_filter_expression— Fetch queryoverride_issue_severity— Override Microsoft Entra ID Protection risk levelissue_severity— Issue severity
Commands (24)
-
msgraph-identity-audit-signin-event-getRetrieve Microsoft Entra ID sign-in event.
-
msgraph-identity-auth-completeRun this command to complete the authorization process. Should be used after running the msgraph-identity-auth-start command.
-
msgraph-identity-auth-resetRun this command if for some reason you need to rerun the authentication process.
-
msgraph-identity-auth-startRun this command to start the authorization process and follow the instructions in the command results.
-
msgraph-identity-auth-testTests connectivity to Microsoft.
-
msgraph-identity-ca-policies-listRetrieve one or all Conditional Access policies from Microsoft Graph API.
-
msgraph-identity-ca-policy-createCreates a Conditional Access policy.
-
msgraph-identity-ca-policy-deleteDelete specific Conditional Access policy by ID.
-
msgraph-identity-ca-policy-updateUpdates a Conditional Access policy. By default, the command attempts to **append** values to existing list-based fields (e.g., `include_users`, `include_groups`, etc.). If a field does not support appending (i.e., it's not a list), the command **overrides** the existing value with the new one.
-
msgraph-identity-directory-role-activateActivates a role by its template ID.
-
msgraph-identity-directory-role-member-addAdds a user to a role.
-
msgraph-identity-directory-role-member-removeRemoves a user from a role.
-
msgraph-identity-directory-role-members-listGets all members in a role ID.
-
msgraph-identity-directory-roles-listLists the roles in the directory.
-
msgraph-identity-ip-named-locations-createCreate an ip named location.
-
msgraph-identity-ip-named-locations-deleteDelete an ip named location by id.
-
msgraph-identity-ip-named-locations-getRetrieve an ip named location by id.
-
msgraph-identity-ip-named-locations-listRetrieve all ip named locations.
-
msgraph-identity-ip-named-locations-updateupdate an ip named location by id.
-
msgraph-identity-protection-risks-listRetrieve all the detected risks.
-
msgraph-identity-protection-risky-user-confirm-compromisedDelete an ip named location by id.
-
msgraph-identity-protection-risky-user-dismissDelete an ip named location by id.
-
msgraph-identity-protection-risky-user-history-listRetrieve the risky users history in active directory.
-
msgraph-identity-protection-risky-user-listRetrieve the risky users in active directory.
category: Authentication & Identity Management provider: Microsoft sectionorder: - Connect - Collect commonfields: id: MicrosoftGraphIdentityandAccess version: -1 configuration: - section: Connect defaultvalue: 597c0375-766f-4e6d-ad2a-f48117044ac5 display: Application ID (Client ID for Client credentials mode) name: app_id type: 0 required: false - section: Connect display: Tenant ID (required for Client Credentials mode) name: tenant_id type: 0 required: false - section: Connect displaypassword: Client Secret (required for Client Credentials mode) name: credentials type: 9 additionalinfo: Client Secret. Required for Client Credentials mode) hiddenusername: true required: false - section: Connect additionalinfo: Used for certificate authentication. As appears in the "Certificates & secrets" page of the app. display: Certificate Thumbprint name: creds_certificate type: 9 displaypassword: Private Key advanced: true required: false - section: Connect additionalinfo: Relevant only if the integration is running on Azure VM. If selected, authenticates based on the value provided for the Azure Managed Identities Client ID field. If no value is provided for the Azure Managed Identities Client ID field, authenticates based on the System Assigned Managed Identity. For additional information, see the Help tab. display: Use Azure Managed Identities name: use_managed_identities type: 8 required: false - section: Connect additionalinfo: The Managed Identities client ID for authentication - relevant only if the integration is running on Azure VM. displaypassword: Azure Managed Identities Client ID name: managed_identities_client_id hiddenusername: true type: 9 required: false - section: Connect defaultvalue: https://login.microsoftonline.com display: Azure AD endpoint name: azure_ad_endpoint options: - https://login.microsoftonline.com - https://login.microsoftonline.us - https://login.microsoftonline.de - https://login.chinacloudapi.cn type: 15 additionalinfo: Azure AD endpoint associated with a national cloud. advanced: true required: false - section: Connect display: Incident type name: incidentType type: 13 required: false supportedModules: - agentix - xsiam - section: Connect additionalinfo: Use a self-deployed Azure application and authenticate using the Client Credentials flow. display: Use Client Credentials Authorization Flow name: client_credentials type: 8 required: false - section: Connect display: Trust any certificate (not secure) name: insecure type: 8 advanced: true required: false - section: Connect display: Use system proxy settings name: proxy type: 8 advanced: true required: false - section: Collect name: isFetch display: Fetch incidents type: 8 required: false supportedModules: - agentix - xsiam - section: Collect name: first_fetch display: First Fetch Time Interval defaultvalue: 1 days type: 0 additionalinfo: The time range to consider for the initial data fetch in the format <number> <unit>. For example, 1 hour, 2 hours, 6 hours, 12 hours, 24 hours, 48 hours, etc. required: false - section: Collect defaultvalue: '50' display: Max Fetch Incidents Returned additionalinfo: The maximum number of incidents per request from Entra ID. Default is 50. name: max_fetch type: 0 required: false supportedModules: - agentix - xsiam - section: Collect display: Incidents Fetch Interval name: incidentFetchInterval defaultvalue: "1" type: 19 required: false supportedModules: - agentix - xsiam - section: Collect display: Alerts to Fetch name: alerts_to_fetch defaultvalue: Risk Detections type: 15 required: false advanced: true options: - Risky Users - Risk Detections additionalinfo: Select what type of Identity alert from MSGraph you want to ingest. - section: Collect display: Fetch query name: fetch_filter_expression type: 0 advanced: true required: false - section: Collect display: Override Microsoft Entra ID Protection risk level name: override_issue_severity type: 8 defaultvalue: 'true' additionalinfo: By default, Microsoft Entra ID Protection risk level is used as Cortex XSOAR/XSIAM issue severity. Select this option to override original risk level reported by Microsoft Entra ID Protection. advanced: true required: false - section: Collect display: Issue severity name: issue_severity options: - critical - high - medium - low defaultvalue: medium type: 15 additionalinfo: "Severity of the Cortex XSOAR/XSIAM issue to be created if Microsoft Entra ID Protection risk level override has been selected. Severity will be the same for all Microsoft Entra ID Protection alerts." advanced: true hidden: false required: false description: Use the Entra ID Identity And Access integration to manage roles and members (formerly Azure Active Directory Identity And Access). display: Entra ID Identity And Access name: MicrosoftGraphIdentityandAccess script: commands: - description: Run this command to start the authorization process and follow the instructions in the command results. name: msgraph-identity-auth-start - description: "Run this command to complete the authorization process.\nShould be used after running the msgraph-identity-auth-start command." name: msgraph-identity-auth-complete - description: Run this command if for some reason you need to rerun the authentication process. name: msgraph-identity-auth-reset - description: Tests connectivity to Microsoft. name: msgraph-identity-auth-test - description: Lists the roles in the directory. name: msgraph-identity-directory-roles-list arguments: - name: limit description: Maximum number of results to fetch. defaultValue: 10 outputs: - contextPath: MSGraphIdentity.Role.deletedDateTime description: The time when a role was deleted. Displays only if a role was deleted. type: Date - contextPath: MSGraphIdentity.Role.description description: The description of the directory role. type: String - contextPath: MSGraphIdentity.Role.displayName description: The display name of the directory role. type: String - contextPath: MSGraphIdentity.Role.id description: The unique identifier of the directory role. type: String - contextPath: MSGraphIdentity.Role.roleTemplateId description: The ID of the directory role template on which the role is based. type: String - description: Activates a role by its template ID. name: msgraph-identity-directory-role-activate arguments: - name: role_template_id description: ID of the role template to activate. Can be retrieved using the msgraph-identity-directory-roles-list command. required: true outputs: - contextPath: MSGraphIdentity.Role.deletedDateTime description: The time when the role was deleted. Displays only if the role was deleted. type: Date - contextPath: MSGraphIdentity.Role.description description: The description of the directory role. type: String - contextPath: MSGraphIdentity.Role.displayName description: The display name of the directory role. type: String - contextPath: MSGraphIdentity.Role.id description: The unique identifier of the directory role. type: String - contextPath: MSGraphIdentity.Role.roleTemplateId description: The ID of the directory role template on which this role is based. type: String - description: Gets all members in a role ID. name: msgraph-identity-directory-role-members-list arguments: - name: role_id description: The ID of the application for which to get its role members list. Can be retrieved using the msgraph-identity-directory-roles-list command. required: true - name: limit description: The maximum number of members to fetch. defaultValue: 10 outputs: - contextPath: MSGraphIdentity.RoleMember.user_id description: The unique identifier of the user in the role. type: String - contextPath: MSGraphIdentity.RoleMember.role_id description: The unique identifier of the role specified in the input. type: String - description: Adds a user to a role. name: msgraph-identity-directory-role-member-add arguments: - name: role_id description: The ID of the role to add the user to. Can be retrieved using the msgraph-identity-directory-roles-list command. required: true - name: user_id description: The ID of the user to add to the role. Can be retrieved using the msgraph-identity-directory-role-members-list command. required: true - description: Removes a user from a role. name: msgraph-identity-directory-role-member-remove arguments: - name: role_id description: ID of the role from which to remove the user. Can be retrieved using the msgraph-identity-directory-roles-list command. required: true - name: user_id description: ID of the user to remove from the role. Can be retrieved using the msgraph-identity-directory-role-members-list command. required: true - description: Retrieve an ip named location by id. name: msgraph-identity-ip-named-locations-get arguments: - name: ip_id description: The id of the named ip location to get from the api. required: true outputs: - contextPath: MSGraph.conditionalAccess.namedIpLocations.time_created description: The time when an ip named location was created. type: Date - contextPath: MSGraph.conditionalAccess.namedIpLocations.time_modified description: The time when an ip named location was updated. type: Date - contextPath: MSGraph.conditionalAccess.namedIpLocations.display_name description: The display name of the ip named location. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.id description: The unique identifier of the ip named location. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.is_trusted description: Abollean that taled if the ip named location is a trusted source. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.ip_ranges description: List of ip ranges for the ip named location. type: Array - description: Retrieve all ip named locations. name: msgraph-identity-ip-named-locations-list arguments: - name: limit description: The limit for results we get from the api. - name: page description: The page to get the data from. - name: odata_query description: An odata query to send to the api. outputs: - contextPath: MSGraph.conditionalAccess.namedIpLocations.ip_named_locations description: List of ip named locations. type: Array - description: Delete an ip named location by id. name: msgraph-identity-ip-named-locations-delete arguments: - name: ip_id description: The id of the named ip location to get from the api. required: true - description: Create an ip named location. name: msgraph-identity-ip-named-locations-create arguments: - name: ips description: 'A comma-separated list of IP ranges to add to the named location. Each range must be in CIDR notation (IPv4 or IPv6), for example: "12.34.221.11/22,2001:0:9d38:90d6:0:0:0:0/63". Bare IP addresses without a CIDR suffix (for example "0.0.0.0") are rejected by Microsoft Graph. See [the Microsoft Graph documentation](https://learn.microsoft.com/en-us/graph/api/conditionalaccessroot-post-namedlocations).' isArray: true - name: is_trusted description: Whether the IPs can be trusted. defaultValue: 'false' - name: display_name description: The display name for the IP location. outputs: - contextPath: MSGraph.conditionalAccess.namedIpLocations.time_created description: The time when an ip named location was created. type: Date - contextPath: MSGraph.conditionalAccess.namedIpLocations.time_modified description: The time when an ip named location was updated. type: Date - contextPath: MSGraph.conditionalAccess.namedIpLocations.display_name description: The display name of the ip named location. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.id description: The unique identifier of the ip named location. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.is_trusted description: Abollean that taled if the ip named location is a trusted source. type: String - contextPath: MSGraph.conditionalAccess.namedIpLocations.ip_ranges description: List of ip ranges for the ip named location. type: Array - description: update an ip named location by id. name: msgraph-identity-ip-named-locations-update arguments: - name: ip_id description: The id of the named ip location to get from the api. required: true - name: ips description: 'A comma-separated list of IP ranges to set on the named location. Each range must be in CIDR notation (IPv4 or IPv6), for example: "12.34.221.11/22,2001:0:9d38:90d6:0:0:0:0/63". Bare IP addresses without a CIDR suffix (for example "0.0.0.0") are rejected by Microsoft Graph. See [the Microsoft Graph documentation](https://learn.microsoft.com/en-us/graph/api/conditionalaccessroot-post-namedlocations).' isArray: true - name: is_trusted description: Whether the IPs can be trusted. - name: display_name description: The display name for the IP location. - description: Retrieve all the detected risks. name: msgraph-identity-protection-risks-list arguments: - name: limit description: The limit for results we get from the api. - name: odata_query description: An odata query to send to the api. outputs: - contextPath: MSGraph.identityProtection.risks.additionalInfo description: dentityProtection.risks.additionalInfo type: string - contextPath: MSGraph.identityProtection.risks.userPrincipalName description: Risky user principal name. type: string - contextPath: MSGraph.identityProtection.risks.userDisplayName description: Risky user display name. type: string - contextPath: MSGraph.identityProtection.risks.userId description: Unique ID of the user. type: string - contextPath: MSGraph.identityProtection.risks.lastUpdatedDateTime description: Date and time that the risk detection was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. type: string - contextPath: MSGraph.identityProtection.risks.detectedDateTime description: Date and time that the risk was detected. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. type: string - contextPath: MSGraph.identityProtection.risks.activityDateTime description: Date and time that the risky activity occurred. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. type: string - contextPath: MSGraph.identityProtection.risks.location.state description: State of the sign-in. type: string - contextPath: MSGraph.identityProtection.risks.location.geoCoordinates.longitude description: Longitude of the sign-in. type: string - contextPath: MSGraph.identityProtection.risks.location.geoCoordinates.latitude description: Latitude of the sign-in. type: string - contextPath: MSGraph.identityProtection.risks.location.countryOrRegion description: Country or region of the sign-in. type: string - contextPath: MSGraph.identityProtection.risks.location.city description: City of the sign-in. type: string - contextPath: MSGraph.identityProtection.risks.ipAddress description: Provides the IP address of the client from where the risk occurred. type: string - contextPath: MSGraph.identityProtection.risks.tokenIssuerType description: Indicates the type of token issuer for the detected sign-in risk. The possible values are AzureAD, ADFederationServices, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.activity description: Indicates the activity type the detected risk is linked to. The possible values are signin, user, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.detectionTimingType description: Timing of the detected risk (real-time/offline). The possible values are notDefined, realtime, nearRealtime, offline, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.source description: Source of the risk detection. For example, activeDirectory. type: string - contextPath: MSGraph.identityProtection.risks.riskDetail description: Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.riskstate description: State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.riskLevel description: Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.riskType description: Deprecated. Use riskEventType instead. List of risk event types. type: string - contextPath: MSGraph.identityProtection.risks.riskEventType description: The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, mcasImpossibleTravel, mcasSuspiciousInboxManipulationRules, investigationsThreatIntelligenceSigninLinked, maliciousIPAddressValidCredentialsBlockedIP, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risks.correlationId description: Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in. type: string - contextPath: MSGraph.identityProtection.risks.requestId description: The ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in. type: string - contextPath: MSGraph.identityProtection.risks.id description: Unique ID of the risk detection. type: string - description: Retrieve the risky users in active directory. name: msgraph-identity-protection-risky-user-list arguments: - name: limit description: The limit for results we get from the api. - name: odata_query description: An odata query to send to the api. outputs: - contextPath: MSGraph.identityProtection.risky-users.userPrincipalName description: Risky user principal name. type: string - contextPath: MSGraph.identityProtection.risky-users.userDisplayName description: Risky user display name. type: string - contextPath: MSGraph.identityProtection.risky-users.riskDetail description: Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risky-users.riskstate description: State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risky-users.riskLevel description: Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.risky-users.riskLastUpdatedDateTime description: The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. type: DateTime - contextPath: MSGraph.identityProtection.risky-users.isProcessing description: Indicates whether a user's risky state is being processed by the backend. type: Boolean - contextPath: MSGraph.identityProtection.risky-users.isDeleted description: Indicates whether a user is delted. type: Boolean - contextPath: MSGraph.identityProtection.risky-users.id description: Unique ID of the risky user. type: string - description: Retrieve the risky users history in active directory. name: msgraph-identity-protection-risky-user-history-list arguments: - name: limit description: The limit for results we get from the api. - name: odata_query description: An odata query to send to the api. - name: user_id description: The id of the user to get the history for. required: true outputs: - contextPath: MSGraph.identityProtection.RiskyUserHistory.userPrincipalName description: Risky user principal name. type: string - contextPath: MSGraph.identityProtection.RiskyUserHistory.userDisplayName description: Risky user display name. type: string - contextPath: MSGraph.identityProtection.RiskyUserHistory.riskDetail description: Reason why the user is considered a risky user. The possible values are limited to none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.RiskyUserHistory.riskstate description: State of the user's risk. The possible values are none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.RiskyUserHistory.riskLevel description: Risk level of the detected risky user. The possible values are low, medium, high, hidden, none, and unknownFutureValue. type: string - contextPath: MSGraph.identityProtection.RiskyUserHistory.riskLastUpdatedDateTime description: The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using the ISO 8601 format and is always in UTC time. type: DateTime - contextPath: MSGraph.identityProtection.RiskyUserHistory.isProcessing description: Indicates whether a user's risky state is being processed by the backend. type: Boolean - contextPath: MSGraph.identityProtection.RiskyUserHistory.isDeleted description: Indicates whether the user is deleted. type: Boolean - contextPath: MSGraph.identityProtection.RiskyUserHistory.id description: Unique ID of the risky user. type: string - description: Retrieve Microsoft Entra ID sign-in event. name: msgraph-identity-audit-signin-event-get arguments: - name: id description: Unique ID representing the sign-in event. required: true outputs: - contextPath: MSGraphIdentity.AuditLog.signIns.appDisplayName description: App name displayed in the Microsoft Entra admin center. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.appId description: Unique GUID that represents the app ID in the Microsoft Entra ID. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.appliedConditionalAccessPolicies description: List of conditional access policies that the corresponding sign-in activity triggers. type: array - contextPath: MSGraphIdentity.AuditLog.signIns.clientAppUsed description: Identifies the client used for the sign-in activity. Modern authentication clients include Browser, modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.conditionalAccessStatus description: Reports status of activated conditional access policy. Possible values are success, failure, notApplied, and unknownFutureValue. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.correlationId description: The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.createdDateTime description: Date and time (UTC) the sign-in was initiated. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.deviceDetail description: Device information from where the sign-in occurred; includes device ID, operating system, and browser. type: object - contextPath: MSGraphIdentity.AuditLog.signIns.id description: Unique ID representing the sign-in activity. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.ipAddress description: IP address of the client used to sign in. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.isInteractive description: Indicates whether a sign-in is interactive. type: boolean - contextPath: MSGraphIdentity.AuditLog.signIns.location description: Provides the city, state, and country code where the sign-in originated. type: object - contextPath: MSGraphIdentity.AuditLog.signIns.resourceDisplayName description: Name of the resource the user signed into. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.riskDetail description: The reason behind a specific state of a risky user, sign-in, or a risk event. The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. type: array - contextPath: MSGraphIdentity.AuditLog.signIns.riskEventTypes_v2 description: The list of risk event types associated with the sign-in. type: array - contextPath: MSGraphIdentity.AuditLog.signIns.riskLevelAggregated description: Aggregated risk level. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.riskLevelDuringSignIn description: Risk level during sign-in. The value hidden means the user or sign-in wasn't enabled for Microsoft Entra ID Protection. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.riskState description: Reports status of the risky user, sign-in, or a risk event. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.status description: Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). type: object - contextPath: MSGraphIdentity.AuditLog.signIns.userDisplayName description: Display name of the user that initiated the sign-in. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.userId description: ID of the user that initiated the sign-in. type: string - contextPath: MSGraphIdentity.AuditLog.signIns.userPrincipalName description: User principal name of the user that initiated the sign-in. This value is always in lowercase. type: string - description: Delete an ip named location by id. name: msgraph-identity-protection-risky-user-confirm-compromised arguments: - name: user_ids description: The ids of the users to compromise seperated be commas. required: true compliantpolicies: - User Hard Remediation - description: Delete an ip named location by id. name: msgraph-identity-protection-risky-user-dismiss arguments: - name: user_ids description: The ids of the users to dismiss seperated be commas. required: true compliantpolicies: - User Soft Remediation - description: Retrieve one or all Conditional Access policies from Microsoft Graph API. name: msgraph-identity-ca-policies-list arguments: - name: policy_id description: The ID of the Conditional Access policy to retrieve. If not provided, all policies will be returned. - name: filter description: The OData filter query to retrieve specific Conditional Access policies. - name: limit description: The maximum number of Conditional Access policies to return. Applicable only when all_results is set to false. - name: all_results description: Whether to retrieve all results without applying the 'limit'. Default value is true. auto: PREDEFINED predefined: - 'true' - 'false' outputs: - contextPath: MSGraphIdentity.ConditionalAccessPolicy.id description: The unique ID of the Conditional Access policy. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.displayName description: The display name of the Conditional Access policy. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.createdDateTime description: The date and time the policy was created. type: date - contextPath: MSGraphIdentity.ConditionalAccessPolicy.modifiedDateTime description: The date and time the policy was last modified. type: date - contextPath: MSGraphIdentity.ConditionalAccessPolicy.state description: The state of the policy (enabled/disabled). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.signInRiskLevels description: List of sign-in risk levels this policy applies to. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.clientAppTypes description: Client application types this policy targets. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeApplications description: List of applications included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.excludeApplications description: List of applications excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeUserActions description: User actions included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeUsers description: User IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeUsers description: User IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeGroups description: Group IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeGroups description: Group IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeRoles description: Role IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeRoles description: Role IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.includePlatforms description: Platforms included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.excludePlatforms description: Platforms excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.includeLocations description: Location IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.excludeLocations description: Location IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.operator description: Logical operator used in the grant controls (e.g., AND, OR). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.builtInControls description: List of built-in access controls (e.g., MFA, compliant device). type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.customAuthenticationFactors description: Custom authentication factors used in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.termsOfUse description: List of Terms of Use policy IDs applied. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.cloudAppSecurityType description: The type of cloud app security control. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.isEnabled description: Whether cloud app security is enabled. type: boolean - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.value description: Sign-in frequency value. type: number - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.type description: Unit of the sign-in frequency (e.g., hours, days). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.isEnabled description: Whether sign-in frequency control is enabled. type: boolean - description: Delete specific Conditional Access policy by ID. name: msgraph-identity-ca-policy-delete arguments: - name: policy_id description: The ID of the Conditional Access policy to delete. required: true - description: Creates a Conditional Access policy. name: msgraph-identity-ca-policy-create arguments: - name: policy description: "JSON object containing the policy details. Ensure a valid policy object is passed. \n" - name: policy_name description: The name of the Conditional Access policy to be created. Required if policy argument not present. - name: state description: "The state of the policy.\nRequired if policy argument not present.\n" auto: PREDEFINED predefined: - enabled - disabled - name: sign_in_risk_levels description: "List of sign-in risk levels for the policy. Options: `low`, `medium`, `high`, `none`.\nRequired if policy argument not present.\n" isArray: true - name: user_risk_levels description: "List of user risk levels for the policy. Options: `low`, `medium`, `high`.\nRequired if policy argument not present.\n" isArray: true - name: client_app_types description: "List of types of client apps to be included in the policy. Options: `all`, `browser`, `mobileAppsAndDesktopClients`, `exchangeActiveSync`, `easSupported`, `other`.\nRequired if policy argument not present.\n" isArray: true - name: include_applications description: "List of application IDs to be included in the policy. If no applications are defined, `includeApplications: 'none'` will be used.\n" isArray: true - name: exclude_applications description: "List of application IDs to be excluded from the policy.\n" isArray: true - name: include_user_actions description: "List of user actions to be included in the policy.\n" isArray: true auto: PREDEFINED predefined: - vrn:user:registersecurityinfo - urn:user:registerdevice - name: include_users description: "List of user IDs to be included in the policy. Options: None, All, GuestsOrExternalUsers.\n" isArray: true - name: exclude_users description: "List of user IDs to be excluded from the policy.\n" isArray: true - name: include_groups description: "List of group IDs to be included in the policy.\n" isArray: true - name: exclude_groups description: "List of group IDs to be excluded from the policy.\n" isArray: true - name: include_roles description: "List of role IDs to be included in the policy.\n" isArray: true - name: exclude_roles description: "List of role IDs to be excluded from the policy.\n" isArray: true - name: include_platforms description: "List of platforms to be included in the policy. Options: `Android`, `iOS`, `Windows`, `windowsPhone`, `macOS`, `Linux`, `all`.\n" isArray: true - name: exclude_platforms description: "List of platforms to be excluded from the policy.\n" isArray: true - name: include_locations description: "List of location IDs to be included in the policy. Options: `All`, `AllTrusted`, or a list of specific location IDs.\n" isArray: true - name: exclude_locations description: "List of location IDs to be excluded from the policy.\n" isArray: true - name: grant_control_operator description: "The operator for grant control.\nDefault value is 'AND'." defaultValue: AND auto: PREDEFINED predefined: - AND - OR - name: grant_control_enforcement description: "List of built-in controls for the policy. Options: `block`, `mfa`, `compliantDevice`, `domainJoinedDevice`, `approvedApplication`, `compliantApplication`, `passwordChange`.\nDefault value is 'mfa'\nSpecial considerations when using `passwordChange`: \n- `passwordChange` must be accompanied by `mfa` using an `AND` operator.\n- `passwordChange` must be used with `userRiskLevels`.\n- The policy should target all applications and not exclude any.\n" isArray: true defaultValue: mfa outputs: - contextPath: MSGraphIdentity.ConditionalAccessPolicy.id description: The unique ID of the Conditional Access policy. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.displayName description: The display name of the Conditional Access policy. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.createdDateTime description: The date and time the policy was created. type: date - contextPath: MSGraphIdentity.ConditionalAccessPolicy.modifiedDateTime description: The date and time the policy was last modified. type: date - contextPath: MSGraphIdentity.ConditionalAccessPolicy.state description: The state of the policy (enabled/disabled). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.signInRiskLevels description: List of sign-in risk levels this policy applies to. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.clientAppTypes description: Client application types this policy targets. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeApplications description: List of applications included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.excludeApplications description: List of applications excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.applications.includeUserActions description: User actions included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeUsers description: User IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeUsers description: User IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeGroups description: Group IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeGroups description: Group IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.includeRoles description: Role IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.users.excludeRoles description: Role IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.includePlatforms description: Platforms included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.platforms.excludePlatforms description: Platforms excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.includeLocations description: Location IDs included in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.conditions.locations.excludeLocations description: Location IDs excluded from the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.operator description: Logical operator used in the grant controls (e.g., AND, OR). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.builtInControls description: List of built-in access controls (e.g., MFA, compliant device). type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.customAuthenticationFactors description: Custom authentication factors used in the policy. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.grantControls.termsOfUse description: List of Terms of Use policy IDs applied. type: list - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.cloudAppSecurityType description: The type of cloud app security control. type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.cloudAppSecurity.isEnabled description: Whether cloud app security is enabled. type: boolean - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.value description: Sign-in frequency value. type: number - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.type description: Unit of the sign-in frequency (e.g., hours, days). type: string - contextPath: MSGraphIdentity.ConditionalAccessPolicy.sessionControls.signInFrequency.isEnabled description: Whether sign-in frequency control is enabled. type: boolean - description: Updates a Conditional Access policy. By default, the command attempts to **append** values to existing list-based fields (e.g., `include_users`, `include_groups`, etc.). If a field does not support appending (i.e., it's not a list), the command **overrides** the existing value with the new one. name: msgraph-identity-ca-policy-update arguments: - name: policy_id description: The ID of the Conditional Access policy to update. required: true - name: policy description: "JSON object containing the policy details. Ensure a valid policy object is passed. If no `policy` argument is provided,\nother required arguments like `policy_name`, `state`, etc. must be included.\n" - name: policy_name description: The name of the Conditional Access policy to be created. - name: state description: "The state of the policy.\n" auto: PREDEFINED predefined: - enabled - disabled - name: sign_in_risk_levels description: "List of sign-in risk levels for the policy. Options: `low`, `medium`, `high`, `none`.\n" isArray: true - name: user_risk_levels description: "List of user risk levels for the policy. Options: `low`, `medium`, `high`.\n" isArray: true - name: client_app_types description: "Types of client apps to be included in the policy. Options: `all`, `browser`, `mobileAppsAndDesktopClients`, `exchangeActiveSync`, `easSupported`, `other`.\n" isArray: true - name: include_applications description: "List of application IDs to be included in the policy. If no applications are defined, `includeApplications: 'none'` will be used.\n" isArray: true - name: exclude_applications description: "List of application IDs to be excluded from the policy.\n" isArray: true - name: include_user_actions description: "List of user actions to be included in the policy. Options: `vrn:user:registersecurityinfo`, `urn:user:registerdevice`.\n" auto: PREDEFINED predefined: - vrn:user:registersecurityinfo - urn:user:registerdevice isArray: true - name: include_users description: "List of user IDs to be included in the policy. Options: None, All, GuestsOrExternalUsers.\n" isArray: true - name: exclude_users description: "List of user IDs to be excluded from the policy.\n" isArray: true - name: include_groups description: "List of group IDs to be included in the policy.\n" isArray: true - name: exclude_groups description: "List of group IDs to be excluded from the policy.\n" isArray: true - name: include_roles description: "List of role IDs to be included in the policy.\n" isArray: true - name: exclude_roles description: "List of role IDs to be excluded from the policy.\n" isArray: true - name: include_platforms description: "List of platforms to be included in the policy. Options: `Android`, `iOS`, `Windows`, `windowsPhone`, `macOS`, `Linux`, `all`.\n" isArray: true - name: exclude_platforms description: "List of platforms to be excluded from the policy.\n" isArray: true - name: include_locations description: "List of location IDs to be included in the policy. Options: `All`, `AllTrusted`, or a list of specific location IDs.\n" isArray: true - name: exclude_locations description: "List of location IDs to be excluded from the policy.\n" isArray: true - name: grant_control_operator description: "The operator for grant control.\n" auto: PREDEFINED predefined: - AND - OR - name: grant_control_enforcement description: "List of built-in controls for the policy. Options: `block`, `mfa`, `compliantDevice`, `domainJoinedDevice`, `approvedApplication`, `compliantApplication`, `passwordChange`.\nSpecial considerations when using `passwordChange`: \n- `passwordChange` must be accompanied by `mfa` using an `AND` operator.\n- `passwordChange` must be used with `userRiskLevels`.\n- The policy should target all applications and not exclude any.\n" isArray: true - name: update_action description: "Defines how to update fields in the policy.\n- `override` (default): Replaces existing values.\n- `append`: Adds new values to existing ones without removing them.\n" auto: PREDEFINED predefined: - override - append isfetch: true script: '' type: python subtype: python3 dockerimage: demisto/crypto:1.0.0.10120494 fromversion: 5.0.0 defaultmapperin: Microsoft Graph Identity and Access Incoming Mapper defaultclassifier: Microsoft Graph Identity and Access Classifier tests: - Identity & Access test playbook