Skip to content
Connector

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.

@ftnt-dspilleMaintainer v1.0.1 Published Nov 28, 2026
Download .tgz · 18 KB

microsoft-entra-id-v2_1.0.1.tgz

sha256:de8593d30898729924c790b7b820de817672b6080dae7502ec95815a31c0767a

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_type select required
    Options On behalf of User - Delegated PermissionWithout a User - Application Permission

    When Get Access Token is Without a User - Application Permission

    • Server URL resource text required

      The service-based URL to which you will connect and perform the automated operations.

      Default https://graph.microsoft.com

    • Directory (tenant) ID tenant_id text required

      The ID of the tenant that you have been provided for your Azure Network Security Group instance.

    • Application (client) ID client_id text required

      Unique 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_secret password required

      Unique 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 resource text required

      The service-based URL to which you will connect and perform the automated operations.

      Default https://graph.microsoft.com

    • Directory (tenant) ID tenant_id text required

      The ID of the tenant that you have been provided for your Azure Network Security Group instance.

    • Application (client) ID client_id text required

      Unique 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_secret password required

      Unique 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 code password 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_url text

      (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_ssl checkbox

    Default false

Operations · 29

  • Get User 2 params
    get_user

    Retrieves one user from Microsoft Entra ID by object ID or user principal name, with optional field selection.

    • User user select required

      user

    • Select select text

      select

  • List Users 5 params
    list_users

    Lists users in the tenant, with optional OData filter, field selection, paging and count.

    • Top top number

      top

    • Filter filter text

      filter

    • Select select text

      select

    • Get All Records getAllRecords checkbox

      getAllRecords

    • Include Count includeCount checkbox

      includeCount

  • Disable User 1 param
    disable_user

    Blocks sign-in for a user by setting accountEnabled to false. Existing sessions are not revoked; run Revoke User Sessions too if needed.

    • User user select required

      user

  • Enable User 1 param
    enable_user

    Allows sign-in again for a user by setting accountEnabled to true.

    • User user select required

      user

  • Reset User Password 2 params
    reset_user_password

    Forces 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 user select required

      user

    • Revoke Sessions revokeSessions checkbox

      revokeSessions

  • Revoke User Sessions 1 param
    revoke_user_sessions

    Invalidates all refresh tokens issued to applications for a user.

    • User user select required

      user

  • List User Sign-ins 3 params
    list_user_sign_ins

    Lists sign-in events for one user from the Entra sign-in logs. Requires AuditLog.Read.All.

    • User user select required

      user

    • Since since text

      since

    • Top top number

      top

  • List Directory Audit Logs 4 params
    list_directory_audits

    Lists Entra directory audit events, with an optional start time and OData filter. Requires AuditLog.Read.All.

    • Since since text

      since

    • Filter filter text

      filter

    • Top top number

      top

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Get Risky Users List 3 params
    get_risky_users_list

    Lists users flagged by Entra ID Protection, with optional OData filter and paging. Requires IdentityRiskyUser.Read.All and an Entra ID P2 licence.

    • Top top number

      top

    • Filter filter text

      filter

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Get Risky User Details 1 param
    get_risky_user_details

    Fetches one risky user from Entra ID Protection by its ID.

    • Risky User ID riskyUserID select required

      riskyUserID

  • List Risk Detections 3 params
    list_risk_detections

    Lists Entra ID Protection risk detections, with optional OData filter and paging. Requires IdentityRiskEvent.Read.All.

    • Top top number

      top

    • Filter filter text

      filter

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Confirm Risky User Compromised 1 param
    confirm_risky_user_compromised

    Marks one or more risky users as confirmed compromised (riskyUsers confirmCompromised). Requires IdentityRiskyUser.ReadWrite.All.

    • User IDs userIds multiselect required

      userIds

  • Confirm Risky User Safe 1 param
    confirm_risky_user_safe

    Marks one or more risky users as confirmed safe (riskyUsers confirmSafe). Requires IdentityRiskyUser.ReadWrite.All.

    • User IDs userIds multiselect required

      userIds

  • Dismiss Risky User 1 param
    dismiss_risky_user

    Dismisses the risk on one or more users (riskyUsers dismiss). Requires IdentityRiskyUser.ReadWrite.All.

    • User IDs userIds multiselect required

      userIds

  • Get Groups 3 params
    get_groups

    Lists groups in the tenant, with optional OData filter and paging.

    • Top top number

      top

    • Filter filter text

      filter

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Get Group Members 3 params
    get_group_users

    Lists the members of one group.

    • Group ID groupID select required

      groupID

    • Top top number

      top

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Get All Named Locations 3 params
    get_all_named_locations

    Lists conditional access named locations, optionally filtered by display name.

    • Name name select

      name

    • Top top number

      top

    • Include Count includeCount checkbox

      includeCount

  • Create IP Named Location 4 params
    create_ip_range_location

    Creates a conditional access IP named location from IPv4 and IPv6 CIDR ranges.

    • Name name text required

      name

    • Is Trusted isTrusted checkbox

      isTrusted

    • IPv4 Ranges ipv4Ranges textarea

      ipv4Ranges

    • IPv6 Ranges ipv6Ranges textarea

      ipv6Ranges

  • Block New IP Ranges 3 params
    block_new_ips

    Adds IPv4 and IPv6 CIDR ranges to an untrusted IP named location, so conditional access can block them.

    • Named Location ID namedLocationID select required

      namedLocationID

    • IPv4 Ranges ipv4Ranges textarea

      ipv4Ranges

    • IPv6 Ranges ipv6Ranges textarea

      ipv6Ranges

  • Unblock IP Ranges 3 params
    unblock_new_ips

    Removes IPv4 and IPv6 CIDR ranges from an untrusted IP named location.

    • Named Location ID namedLocationID select required

      namedLocationID

    • IPv4 Ranges ipv4Ranges textarea

      ipv4Ranges

    • IPv6 Ranges ipv6Ranges textarea

      ipv6Ranges

  • List Conditional Access Policies 3 params
    list_conditional_access_policies

    Lists conditional access policies, with optional OData filter and paging. Requires Policy.Read.All.

    • Top top number

      top

    • Filter filter text

      filter

    • Get All Records getAllRecords checkbox

      getAllRecords

  • Get Conditional Access Policy 1 param
    get_conditional_access_policy

    Fetches one conditional access policy by ID.

    • Policy ID policyID select required

      policyID

  • Execute Graph API Request 3 params
    execute_api_request

    Calls any Microsoft Graph v1.0 or beta path with the connector's own authentication. Use for endpoints that have no dedicated operation.

    • Method method select

      method

      Options GETPOSTPATCHPUTDELETE

      When Method is POST

      • Body body textarea

        body

      When Method is PATCH

      • Body body textarea

        body

      When Method is PUT

      • Body body textarea

        body

    • Endpoint endpoint text required

      endpoint

    • Query Parameters params textarea

      params

  • Dropdown: user principal names
    list_user_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

  • Dropdown: groups
    list_group_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

  • Dropdown: named location names
    list_named_location_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

  • Dropdown: named locations (with ids)
    list_named_location_id_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

  • Dropdown: conditional access policies
    list_conditional_access_policy_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

  • Dropdown: risky users
    list_risky_user_choices

    Returns the choices for a dropdown in the playbook editor. Not a playbook action.

    No parameters.

Something wrong with this item? Sign in to report

Report a problem

Sensitive data, copied content, broken imports, anything that shouldn't be here.

At least 10 characters. Please don't paste the sensitive value itself.0/1000