Microsoft Entra ID v2
Entra ID users, sign-ins, risky users and conditional access
Microsoft Entra ID through Microsoft Graph: users, sign-in and audit logs, Identity Protection, groups, named locations and conditional access.
microsoft-entra-id-v2_1.0.1.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Connector for Microsoft Entra ID (Azure AD) through Microsoft Graph v1.0. It gives a playbook the identity operations a SOC needs: get, list, enable and disable users, reset a password, revoke sign-in sessions, read sign-in and directory audit logs, work with Entra ID Protection (list risky users, read a user's risk, read risk detections, confirm compromised, confirm safe, dismiss risk), list groups and their members, list and create named locations, block and unblock IP ranges in an IP named location, list and get conditional access policies, and send any Graph v1.0 or beta request through execute_api_request. Six hidden dropdown operations fill the connector's pickers from the tenant.
Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant.
Authentication: an app registration with a client secret, using application permissions (the default) or delegated permissions on behalf of a user. The connector needs these permission names on the app registration: AuditLog.Read.All (sign-in and directory audit logs), IdentityRiskyUser.Read.All (risky users; Entra ID P2 licence), IdentityRiskyUser.ReadWrite.All (confirm compromised, confirm safe, dismiss), IdentityRiskEvent.Read.All (risk detections), Policy.Read.All (conditional access policies and named locations), Policy.ReadWrite.ConditionalAccess (block and unblock IP ranges), and User.RevokeSessions.All (revoke sign-in sessions). The user, group and password operations need the user and group read and write permissions for those endpoints. Grant admin consent for each permission.
Not live-tested:
- Operations: none. All 29 operations ran live on 8.0.1 with a successful run or an expected error that matched its class.
- Error classes: 400, 403 and 404 were seen live. 401 (token refresh) and 429 (throttling with Retry-After) are covered by the offline tests and the sanitised error mocks only.
- Playbook branches: the approval branches (contained, not approved, contained without block) are not proven live. The lab tenant's Identity Protection risky-user state reverts during the run, so the playbook's risky-user sweep does not target the test user and the run never reaches the approval gate. The playbook item lists these in detail.
Configuration · 2 fields
- Get Access Token
auth_typeselect requiredOptions On behalf of User - Delegated PermissionWithout a User - Application PermissionWhen Get Access Token is Without a User - Application Permission
- Server URL
resourcetext requiredThe service-based URL to which you will connect and perform the automated operations.
Default
https://graph.microsoft.com - Directory (tenant) ID
tenant_idtext requiredThe ID of the tenant that you have been provided for your Azure Network Security Group instance.
- Application (client) ID
client_idtext requiredUnique ID of the Azure Network Security Group application that is used to create an authentication token required to access the API.
- Application (Client) Secret
client_secretpassword requiredUnique Client Secret of the Azure Network Security Group application that is used to create an authentication token required to access the API. For information on how to get the secret key, see https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/exposed-apis-create-app-webapp.
When Get Access Token is On behalf of User - Delegated Permission
- Server URL
resourcetext requiredThe service-based URL to which you will connect and perform the automated operations.
Default
https://graph.microsoft.com - Directory (tenant) ID
tenant_idtext requiredThe ID of the tenant that you have been provided for your Azure Network Security Group instance.
- Application (client) ID
client_idtext requiredUnique ID of the Azure Network Security Group application that is used to create an authentication token required to access the API.
- Application (Client) Secret
client_secretpassword requiredUnique Client Secret of the Azure Network Security Group application that is used to create an authentication token required to access the API. For information on how to get the secret key, see https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/exposed-apis-create-app-webapp.
- Authorization Code
codepassword required(Only Applicable to On behalf of User - Delegate Permission) The authorization code that you acquired during the authorization step. For more information, see the Getting Access Tokens using the On behalf of the user - Delegate Permission method section.
- Redirect URI
redirect_urltext(Only Applicable to On behalf of User - Delegate Permission) The redirect_uri of your app, where authentication responses can be sent and received by your app. The redirect URL that you specify here must exactly match one of the redirect_uri's you have registered in your app registration portal.
- Verify SSL
verify_sslcheckboxDefault
false
Operations · 29
Get User 2 params
get_userget_userRetrieves one user from Microsoft Entra ID by object ID or user principal name, with optional field selection.
- User
userselect requireduser
- Select
selecttextselect
List Users 5 params
list_userslist_usersLists users in the tenant, with optional OData filter, field selection, paging and count.
- Top
topnumbertop
- Filter
filtertextfilter
- Select
selecttextselect
- Get All Records
getAllRecordscheckboxgetAllRecords
- Include Count
includeCountcheckboxincludeCount
Disable User 1 param
disable_userdisable_userBlocks sign-in for a user by setting accountEnabled to false. Existing sessions are not revoked; run Revoke User Sessions too if needed.
- User
userselect requireduser
Enable User 1 param
enable_userenable_userAllows sign-in again for a user by setting accountEnabled to true.
- User
userselect requireduser
Reset User Password 2 params
reset_user_passwordreset_user_passwordForces a password change at the user's next sign-in and, by default, revokes their sign-in sessions. No password is generated, sent or returned.
- User
userselect requireduser
- Revoke Sessions
revokeSessionscheckboxrevokeSessions
Revoke User Sessions 1 param
revoke_user_sessionsrevoke_user_sessionsInvalidates all refresh tokens issued to applications for a user.
- User
userselect requireduser
List User Sign-ins 3 params
list_user_sign_inslist_user_sign_insLists sign-in events for one user from the Entra sign-in logs. Requires AuditLog.Read.All.
- User
userselect requireduser
- Since
sincetextsince
- Top
topnumbertop
List Directory Audit Logs 4 params
list_directory_auditslist_directory_auditsLists Entra directory audit events, with an optional start time and OData filter. Requires AuditLog.Read.All.
- Since
sincetextsince
- Filter
filtertextfilter
- Top
topnumbertop
- Get All Records
getAllRecordscheckboxgetAllRecords
Get Risky Users List 3 params
get_risky_users_listget_risky_users_listLists users flagged by Entra ID Protection, with optional OData filter and paging. Requires IdentityRiskyUser.Read.All and an Entra ID P2 licence.
- Top
topnumbertop
- Filter
filtertextfilter
- Get All Records
getAllRecordscheckboxgetAllRecords
Get Risky User Details 1 param
get_risky_user_detailsget_risky_user_detailsFetches one risky user from Entra ID Protection by its ID.
- Risky User ID
riskyUserIDselect requiredriskyUserID
List Risk Detections 3 params
list_risk_detectionslist_risk_detectionsLists Entra ID Protection risk detections, with optional OData filter and paging. Requires IdentityRiskEvent.Read.All.
- Top
topnumbertop
- Filter
filtertextfilter
- Get All Records
getAllRecordscheckboxgetAllRecords
Confirm Risky User Compromised 1 param
confirm_risky_user_compromisedconfirm_risky_user_compromisedMarks one or more risky users as confirmed compromised (riskyUsers confirmCompromised). Requires IdentityRiskyUser.ReadWrite.All.
- User IDs
userIdsmultiselect requireduserIds
Confirm Risky User Safe 1 param
confirm_risky_user_safeconfirm_risky_user_safeMarks one or more risky users as confirmed safe (riskyUsers confirmSafe). Requires IdentityRiskyUser.ReadWrite.All.
- User IDs
userIdsmultiselect requireduserIds
Dismiss Risky User 1 param
dismiss_risky_userdismiss_risky_userDismisses the risk on one or more users (riskyUsers dismiss). Requires IdentityRiskyUser.ReadWrite.All.
- User IDs
userIdsmultiselect requireduserIds
Get Groups 3 params
get_groupsget_groupsLists groups in the tenant, with optional OData filter and paging.
- Top
topnumbertop
- Filter
filtertextfilter
- Get All Records
getAllRecordscheckboxgetAllRecords
Get Group Members 3 params
get_group_usersget_group_usersLists the members of one group.
- Group ID
groupIDselect requiredgroupID
- Top
topnumbertop
- Get All Records
getAllRecordscheckboxgetAllRecords
Get All Named Locations 3 params
get_all_named_locationsget_all_named_locationsLists conditional access named locations, optionally filtered by display name.
- Name
nameselectname
- Top
topnumbertop
- Include Count
includeCountcheckboxincludeCount
Create IP Named Location 4 params
create_ip_range_locationcreate_ip_range_locationCreates a conditional access IP named location from IPv4 and IPv6 CIDR ranges.
- Name
nametext requiredname
- Is Trusted
isTrustedcheckboxisTrusted
- IPv4 Ranges
ipv4Rangestextareaipv4Ranges
- IPv6 Ranges
ipv6Rangestextareaipv6Ranges
Block New IP Ranges 3 params
block_new_ipsblock_new_ipsAdds IPv4 and IPv6 CIDR ranges to an untrusted IP named location, so conditional access can block them.
- Named Location ID
namedLocationIDselect requirednamedLocationID
- IPv4 Ranges
ipv4Rangestextareaipv4Ranges
- IPv6 Ranges
ipv6Rangestextareaipv6Ranges
Unblock IP Ranges 3 params
unblock_new_ipsunblock_new_ipsRemoves IPv4 and IPv6 CIDR ranges from an untrusted IP named location.
- Named Location ID
namedLocationIDselect requirednamedLocationID
- IPv4 Ranges
ipv4Rangestextareaipv4Ranges
- IPv6 Ranges
ipv6Rangestextareaipv6Ranges
List Conditional Access Policies 3 params
list_conditional_access_policieslist_conditional_access_policiesLists conditional access policies, with optional OData filter and paging. Requires Policy.Read.All.
- Top
topnumbertop
- Filter
filtertextfilter
- Get All Records
getAllRecordscheckboxgetAllRecords
Get Conditional Access Policy 1 param
get_conditional_access_policyget_conditional_access_policyFetches one conditional access policy by ID.
- Policy ID
policyIDselect requiredpolicyID
Execute Graph API Request 3 params
execute_api_requestexecute_api_requestCalls any Microsoft Graph v1.0 or beta path with the connector's own authentication. Use for endpoints that have no dedicated operation.
- Method
methodselectmethod
Options GETPOSTPATCHPUTDELETEWhen Method is POST
- Body
bodytextareabody
When Method is PATCH
- Body
bodytextareabody
When Method is PUT
- Body
bodytextareabody
- Endpoint
endpointtext requiredendpoint
- Query Parameters
paramstextareaparams
Dropdown: user principal names
list_user_choiceslist_user_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.
Dropdown: groups
list_group_choiceslist_group_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.
Dropdown: named location names
list_named_location_choiceslist_named_location_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.
Dropdown: named locations (with ids)
list_named_location_id_choiceslist_named_location_id_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.
Dropdown: conditional access policies
list_conditional_access_policy_choiceslist_conditional_access_policy_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.
Dropdown: risky users
list_risky_user_choiceslist_risky_user_choicesReturns the choices for a dropdown in the playbook editor. Not a playbook action.
No parameters.